Hi community.
I need some advice/tips to correctly release memory from scene to scene using Composer.
I’ve been reading some documentation about the subject and my understanding is that all events need to be removed, timers need to be stopped, display groups should be destroyed.
My question is when to do this? At the scene:destroy or at the scene:hide (at the event will or did?) function?
Another question is, for instance, if i have a displayGroup named myGroup with a lot of images and call the myGroup:removeSelf() all the images are destroyed and the memory is released?
At the end all my variables need to be equal nil to the garbage collector release the memory?
Please, can you give me some tips to implement this correctly?
Thank you so much for your time and help.