You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to preload the textures at startup?
I am asking because I have noticed that if a new block texture is used, then the engine will try to fetch it, meaning that it can show an empty hole while retrieving it.
If it could just fetch and cache all the textures, it wouldn't matter much as it is expected to have some loading but at least it would have a better overall feel when playing the game.
How could one go about doing that in noa?
The text was updated successfully, but these errors were encountered:
Hey! Short answer: should be possible, but I have no particular idea how.
I think that it should work the same as preloading assets for any other purpose (like loading a font before you display the text). If you load each asset once before creating your noa/Babylon scene, then when Babylon loads the textures they'll come from cache instantly.
So my guess is that any existing "image preload" library should work for this. But I haven't tried it and don't know one to recommend.
Hello there!
Would it be possible to preload the textures at startup?
I am asking because I have noticed that if a new block texture is used, then the engine will try to fetch it, meaning that it can show an empty hole while retrieving it.
If it could just fetch and cache all the textures, it wouldn't matter much as it is expected to have some loading but at least it would have a better overall feel when playing the game.
How could one go about doing that in noa?
The text was updated successfully, but these errors were encountered: