I am currently using this code to keep a tab on my memory usage, but was wondering if this is the best way (since I’ve stumbled upon some other ways, but not sure)… here’s where I got my memory mangement code:
http:</http:>
and it looks like this:
[code]local monitorMem = function()
collectgarbage()
print( "MemUsage: " … collectgarbage(“count”) )
local textMem = system.getInfo( “textureMemoryUsed” ) / 1000000
print( "TexMem: " … textMem )
end
Runtime:addEventListener( “enterFrame”, monitorMem )[/code]
I’ve actually modified the code to round up (to avoid all the extra numbers) and also made it show up in a text box on my screen.
Any thoughts or suggestions? [import]uid: 129334 topic_id: 24223 reply_id: 324223[/import]