What is Memory Management?
Memory management in Corona is simply managing the following five things:
- Display objects
- Global variables
- Runtime listeners
- Timers
- Transitions
local monitorMem = function()
collectgarbage()
print( "MemUsage: " .. collectgarbage("count") )
local textMem = system.getInfo( "textureMemoryUsed" ) / 1000000
print( "TexMem: " .. textMem )
end
Runtime:addEventListener( "enterFrame", monitorMem )
키워드 : garbage collection, collectgarbage
No comments:
Post a Comment