novelrt / NovelRT

A cross-platform 2D game engine accompanied by a strong toolset for visual novels.
MIT License
185 stars 42 forks source link

Add eager asset DB loading. #562

Closed RubyNova closed 1 year ago

RubyNova commented 1 year ago

…ame start.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...) This introduces a required internal behavioural change for the resource loader that will, on first launch of a NovelRT game, ensure the asset DB is up to date and correct.

Is there an open issue that this resolves? If so, please link it here. No.

What is the current behavior? (You can also link to an open issue here) The resource loader manages the asset DB lazily, which makes supporting certain APIs unfeasible.

What is the new behavior (if this is a feature change)? The resource loader will now make sure the asset DB is loaded correctly on boot.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?) No.

Other information: N/A