How to Compute the Real Frame Rate in enterFrame handler

In an actionscript application we can set the frame rate in main class. We can do the same in flash applications. However the number we set is not necessarily what we really get. Depending on the number of computations that should be done at each frame, the ENTER_FRAME event can be delayed. Lets assume we have a sprite and we want to find out how many frames are displayed in one second (also called frame rate or frames per second, FPS).

Leave a Reply

Your email address will not be published. Required fields are marked *