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? [import]uid: 17482 topic_id: 11384 reply_id: 311384[/import]

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. [import]uid: 5833 topic_id: 11384 reply_id: 41990[/import]

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

[import]uid: 6645 topic_id: 11384 reply_id: 44220[/import]