android - How to manage memory properly using Director class 1.4? -
i using director class 1.4 changing scene scene , wondering if director class manages memory automatically or have manage them manualy removing , nilling out every thing?
i using code check if memories cleared automatically , aren't cleared automatically see. leaks memory every time change 1 scene scene.
local monitormem = function() collectgarbage() print( "memusage: " .. collectgarbage("count") ) local textmem = system.getinfo( "texturememoryused" ) / 1000000 print( "texmem: " .. textmem ) end runtime:addeventlistener( "enterframe", monitormem )
so looks found link?
http://www.coronalabs.com/blog/2011/08/15/corona-sdk-memory-leak-prevention-101/
it understanding display objects added local group automatically removed memory, runtime listeners, timers , transitions not.
Comments
Post a Comment