Task manager memory vs collectgarbage( 'count' )

Is it possible for the Task Manager (Windows) to steadily increase in memory while collectgarbage( ‘count’ ) reports a consistent number?

I have loaded a couple thousand images on screen. I have reduced/commented-out my code to where nothing is else is going on. The Task Manager memory increments by .1 about every minute, and I have watched this occur for about 30 minutes.

Is it there some other type of memory that collectgarbage( ‘count’ ) does not report, or is it that Windows is allocating more memory to the program for some reason? I have tested this out in the simulator and with a Windows App build.

Yes. The collectgarbage(‘count’) API only reports Lua memory (tables, strings, numbers, etc.). It does not count allocated memory for textures (images) or audio.

There is a function under system.getInfo() I think that shows you texture memory used. http://docs.coronalabs.com/api/library/system/getInfo.html#texturememoryused

Rob

Thank you for the response Rob.

If I am not drawing any new objects, and letting the ones currently displayed just “sit” there, would you expect the Task Manager to increase as I described?

SSK2includes some easy to use meters 

https://roaminggamer.github.io/RGDocs/pages/SSK2/libraries/meters/

memmeter.jpg

You can use them with SSK2 or simply add the meters module to your game by itself:

https://github.com/roaminggamer/SSK2/blob/master/ssk2/extras/meters.lua

Yes. The collectgarbage(‘count’) API only reports Lua memory (tables, strings, numbers, etc.). It does not count allocated memory for textures (images) or audio.

There is a function under system.getInfo() I think that shows you texture memory used. http://docs.coronalabs.com/api/library/system/getInfo.html#texturememoryused

Rob

Thank you for the response Rob.

If I am not drawing any new objects, and letting the ones currently displayed just “sit” there, would you expect the Task Manager to increase as I described?

SSK2includes some easy to use meters 

https://roaminggamer.github.io/RGDocs/pages/SSK2/libraries/meters/

memmeter.jpg

You can use them with SSK2 or simply add the meters module to your game by itself:

https://github.com/roaminggamer/SSK2/blob/master/ssk2/extras/meters.lua