Hi guys.
Another issue that I am having. Again using Using the code from Don-Duong Quach (the Corona profiler) for some screens I can see that memory (lua memory not texture) goes up for a while then suddenly goes down and slowly goes again. I am assuming the GC is at work. The funny thing is that on some screen the same pattern happens BUT the memory does not goes as much.
In one screen the lua memory goes from 294k to 654k but in another screen the memory goes from 286k to 339k. Also the frequency of the pattern is much higher when the memory useage is low than when the memory useage is high. I am just concern of why the memory goes up slowly to around 700k with anything moving around (unlike the gameScreen where the action of the game happens) The two screens are simply the game options screen and the score screen. In both screen only some buttons are displayed and nothing dynamic is suppose to happen (no moving objects, timers...) In those two screens I am using movieclip.lua but commenting that did not seems to make any difference if i remove it.
Here what it look like:
http://postimage.org/image/3mt5nnyhz/
Another image:
http://postimage.org/image/vt6tgo2nb/
The top part shows the start menu screen where the memory goes up and up then goes down. The bottom part is the screen when i switch to the score screen.
Any suggestions?
Thanks.
Mo