Hello.
Introduction
I have been using Flash and Flashpunk for only a few months. I am using a fixed frame rate of 30 FPS. I have about 300 entities (though the problem shows up even if I reduce to 50) and 65 MB of memory usage.
The Problem
I noticed that I get a fairly smooth framerate except that it skips every once in a while. The game logic operates normally but every once in a while the frame is not updated visually. This seems to happen independently of what is going on in the game. I have experimented with having the game just have a simple triangle float across the screen and no other code running. The triangle doesn’t float smoothly but seems to skip a lot. This happens more when I run the game on less powerful PCs and when I run the game in Flash Developer. However, the skipping doesn’t seem to happen as much when I run the game on more powerful PCs or from Firefox or Internet Explorer directly.
My Analysis
I suspect that Flash doesn’t get a steady amount of processing power because of other things running in the background. As a result, it sometimes doesn’t draw a frame when the computer is slightly busy with other things. Has anyone else encountered this problem? Is this normal or just me? Are there any work-arounds to solve this?
Thank you!