Dropping frame rate when using Lime+Director

I am using lime and director and when I either try to restart a level or move to the next level there is a diminishing framerate. the framerate will start at about 30 FPS and after loading another map or two it will drop to around 15-18 fps.

I am not leaking at all and my "maps" are fairly simple (only 480x320).

Does anyone have any idea what might be causing the drop in framerate?

This could be the spritesheets not being cleared properly, in lime-tileset.lua look in the destroy function and see if dispose() is called on the spritesheet before nilling it out.

when i've been doing scrolling tests (but not Lime), i noticed it was best to wait a second or so before trying to scroll anything.. otherwise the framerate drops and doesnt recover. I think it's something to do with the memory management.. best let Corona settle into not doing anything (like loading texture memory etc) before you start trying to move stuff around.

Basically put a delay in before letting your user interact or moving your map and see if that helps

haven't tested this myself so please let me know how you get on

thanks
j

views:1391 update:2011/10/13 16:30:09
corona forums © 2003-2011