-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
✨ enhancement🙇♀️Careful thinking/design or refactoring neededNeeds a bit of studying to come with an elegant solutionNeeds a bit of studying to come with an elegant solution
Description
Description
When GDevelop loads up, it takes much time preloading everything. Sometimes though, you may want to have a game that loads fast initially and then have some loading screens to load the missing stuff.
Solution suggested
Instead of forcing preloading resources to the user, we could take a similar approach to what was done in #2006 :
- Add a property on the resources to choose if it should be preloaded or not
- Add actions to preload and unload resources
- Modify the loaded resources getters to load the resource if it hasn't been loaded yet or has been unloaded
That way, the game never breaks, but it gives a way for users to control what is loaded or not to have a better memory management, and to make their own "loading screens" by initially loading only the loading screen assets so that the gdevelop splash screen can be hidden as it is too fast to see anyways, and using a GDevelop scene using the actions to load what they need and display the on screen feedback they want in the meantime.
4ian and Wend1go
Metadata
Metadata
Assignees
Labels
✨ enhancement🙇♀️Careful thinking/design or refactoring neededNeeds a bit of studying to come with an elegant solutionNeeds a bit of studying to come with an elegant solution