I was working with the new ImageSheet and wanted to check memory usage. The following seems to say 0 texture memory?
[lua]local memory_text = display.newText( “Hello”, 5, 5, native.systemFont, 16 )
memory_text:setTextColor( 255, 0, 0 )
memory_text.x = display.contentCenterX
local monitorMem = function()
collectgarbage()
local textMem = math.round( system.getInfo( “textureMemoryUsed” ) / 1000000 )
memory_text.text = “Mem:”…math.round( collectgarbage(“count”)) … " tex:"… textMem
end
Runtime:addEventListener( “enterFrame”, monitorMem )[/lua] [import]uid: 98652 topic_id: 27147 reply_id: 327147[/import]
[import]uid: 52491 topic_id: 27147 reply_id: 110252[/import]