Replies: 4 comments 2 replies
-
I have the same question as the original poster, but the above link is 404. Is there an updated link or does someone else know the answer? |
Beta Was this translation helpful? Give feedback.
-
Short answer is no. AssetServer returns handles immediatly, but texture (or other resource) behind this handle will be available later, you can reuse that handles multiple times. This is very usable when you can do fast setup, while application uses lazy loading. You should read this article for more info |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply. I read through the article you sent and that gives me a better understanding of the asset server and what it is doing. However I still have a question about the TextureAtlas and its construction. The code in this example calls |
Beta Was this translation helpful? Give feedback.
-
Hello!
I was wondering if you should reuse already loaded texture atlases when you spawn new entities. For example, following the sprite sheet example, if I want to spawn new animated sprites while the game is running, should I do this:
again? Should I save the handle in a resource? Something like a HashMap mapping names to handles. Or is there some other way of getting a previously loaded textures?
Beta Was this translation helpful? Give feedback.
All reactions