Create your own. Write a module that stores all display groups in a table, and have each scene register their display group with a function call. I do something similar with my scenes so I can swap between them (menu scene, splash scene, game scene, etc.)
so in terms of a reset, what exactly do i have to destroy?
right now, i am destroying all objects within display groups, the display group itself and some random tables i am using.
Do i need to cancel listeners as well? if variables within functions are initialized as local, i don’t have to go through and nil them out, do i? garbage collection does that?
I have used print statements that print out memory usage at enterframe. when my app starts, it should be the same as when it restarts, but its not quite. I must be missing something, but i can’t figure out what. [import]uid: 29997 topic_id: 11569 reply_id: 42305[/import]
It’s going to be near impossible to get things back to initial memory usage. Just make sure it’s not a big leak. [import]uid: 10903 topic_id: 11569 reply_id: 42312[/import]