flash frame rate measurement(fps)
Frame rate measurement is an important topic in flash game development.
Goggle brings you a ton of scripts showing the current fame rate in a text field in a corner of your swf. But in your games you often have situations where the amount of calculations in/decreases very rapidly and you want to see at the first look how the frame rate if affected. For this a graph showing the frame rate is much better than the frame rate in a text field.
I would like to share a tool I wrote in 2006 and ported to AS3 last month.
download: http://www.lueftenegger.at/downloads/
Manual:
- green graph: shows the current frame rate.
- blue graph: shows the average frame rate of the last 50 frames.
- red graph: shows the average frame rate of the whole runtime.
To use the window, just drag the Symbol "fpsWindow" from the library on the stage.
To create it programmatically use the following code:
- // AS3:
- addChild(new fpsWindow());
- // AS2:
- _root.attachMovieClip("fpsWindow","fpsWindow",getNextHighestDepth());
- 0 Comments



Your comment