Cleaning up displayobjects memory but retaining textures for next level?

Hi there,

I would like to clean up my memory after a level finishes by niling out all display objects and groups. After that I open a level select screen. However, I would like to keep my textures in memory so they don't all have to be loaded again when a following level is chosen. It would be stupid to load an unload only to have to reload again 10 seconds later after a new level select.

Does anyone know how exactly Corona purges textures from memory, or how I could specify that I would like to use the texture data again an thus retain them in memory? One line of thinking is keeping some reference (a global one) to a texture by creating a 'one-big-frame' tilesheet or something similar, but that feels a bit of a work-around.

Cheers,
Thomas

views:1410 update:2011/10/25 9:10:48
corona forums © 2003-2011