collectgarbage( "count" ) is different from memory used by the game in android application manager

I investigated this now furhter and it seems that always when I go out of a game into the task manager and than back, the Ram consumed by the game increases. always!

The amount is dependent on the number and size of images currently on the screen.

This even works with the hello world example.

It starts with about 13 mb ram and after some changes between task manager and hello world programm, the ram is on my phone at about 30 mb …

its going up and down, rises sometimes more and sometimes less, but it keeps rising in the big picture…

For my game that made an increase of about 20 mb everytime I switched between game and taskmanager.

I tried this with other games (not made with corona, I think) and this did not happen, ie. the consumed ram does not increase constantly.

I also tried it with “Crosstown Smash (free)” and there (in the select world menu) the ram rises constantly too. (always just about 3 mb, but everytime) …

I will stop now with this and hope that my other fixes reduce the lag in higher levels enough to this becomes not a problem…

edit: after some time the Ram reduces back to the initial value, at least at the hello world example. (More then 20 minutes)

Sounds like I have some leaks to plug!

I don’t think I ever saw that leak. But then again, I was going by Lergs metering and not the task manager. D you see the memory increase in the Hello World app when using the performance meter as well?

I dont think its worth the time, especially because after some time the RAM used by the game is reduced automatically, probably by the OS…

I did not try the performance meter in the hello world app. I wnated to have it as natural as possible :slight_smile: