Hi!
I just trying to understand what is happening when game starts? Is Gideros loading textures at this time?
Recently I added big background texture (have all sizes for different screens -
@2x,
@2.5x,
@4x,
@4.5x,
@5x) and game loading became very long. Thats so long so I think it's loading all texture sizes. Am I right?
Recently I thought that Gideros loads texture only when I create Bitmap.
Comments
Gideros loads texture only when you create Texture.new (or any other texture related class) And it will only load one specific size from all suffixes, that is suitable for device, not all of them.
But, for example, running Gideros player, it will upload all images to player, because it does not know what will be loaded before hand.
http://giderosmobile.com/forum/discussion/comment/9441#Comment_9441
Lua does garbage collection in cycles, so you don't know exactly when it will be garbage collected
collectgarbage()
http://luatut.com/collectgarbage.html
https://deluxepixel.com