I have been working on a game for a little over two months and im almost ready to release:)
The problem is the frame rate seems to get progressively slower the more you play the game.
I have also noticed that the garbage does get collected but it never gets as low as it was before the level started…meaning that when i start the game the garbage is at about 500. when i play a game and lose i force garbage collection and it goes back down to about 500. As you keep playing the minimum garbage seems to pass 500 and keeps getting larger.
As the garbage gets larger the framerate starts slowing down. I played a 5 or 6 games in a row and the fps got down to an average of 10 fps.
I have scoured these forums and my code and i am removing all event listeners setting variables to nil and I have even optimized my code. It seems that no matter what i do I cant get the frame rate to stay at 30 fps
Is there anything else I should be looking for?
[import]uid: 27671 topic_id: 8868 reply_id: 308868[/import]