Hey Guys,
I have gotten to the testing part of my app, and I have noticed that each time I switch from a screen and back to the same screen my memory usage has increased by a byte. For example, I start on my menu screen, my memory usage at that point is 150, and then switch to my level screen and then back to the menu and the memory has increased to 151. Im using Director 1.3 and I have nilled and removed everything. Is this increase normal?
Im using this function to check my memory and texture usage.
[lua]local function memCheck (event)
collectgarbage(“collect”)
print(“System Memory : " …(collectgarbage(“count”)/1000)…” MB")
local textMem = system.getInfo( “textureMemoryUsed” ) / 1000000
print( "TexMem: " … textMem )
end
local timerCheck = timer.performWithDelay( 1000, memCheck, -1 )
[import]uid: 17138 topic_id: 12789 reply_id: 312789[/import]
[import]uid: 52491 topic_id: 12789 reply_id: 84743[/import]