Hey, if i do this 2 times:
Texture.new("gfx/test.png")
is then the graphic loaded 2 times?
or
is it loaded into memory allready when starting and this just retuns some stuff that is in some table with this name?
or
is it loaded into memory the first time, and in the second time then just the allready loaded and assigned with this filename stuff returned?
or
?
I saw alot of solutions for this so i just want to ask if i need to make me some ressource handling or if this is all handled allready and i dont need to take care for this.
Comments
http://www.giderosmobile.com/forum/discussion/comment/4008#Comment_4008
I prefer using Bitmap.new(Texture.new("file.png")) in one direct call, just in case you might want to use it too unless someone points out how this might not be such a good idea.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
It's safe and efficient to use Bitmap.new(Texture.new("file.png")) directly.
Likes: avo