Hi all,
I have a game where I created classes representing enemies. Each enemy has graphics and animations. I’m using graphics.newImageSheet for better performance. The question is:
I read that Corona caches files loaded via display.newImage so when I load the same file once again Corona uses its copy from memory.
-
Does this behaviour is the same in case of graphics.newImageSheet??
-
What if I call local a = display.newImage(“file.png”) and then I call a = nil and then I call local b = display.newImage(“file.png”). How long file.png is kept in memory? Does second call of newImage load file from memory or as a new file from file?
Many thanks in advance.
m.
[import]uid: 67745 topic_id: 33197 reply_id: 333197[/import]