wonderwhy-ER on DeviantArthttps://www.deviantart.com/wonderwhy-er/art/AS3-Performance-Tester-Source-102087931wonderwhy-ER

Deviation Actions

wonderwhy-ER's avatar

AS3 Performance Tester Source

By
Published:
1.8K Views

Description

Well did it for work and other Flash project testings. Decided to share with you. Help to test program for bottlenecks. Though a more complex thing I used in Collision Studies series exists. Just need to polish it for wide use :)

Anyways it is AS3 fla containing a library item called fps.
You can see demo here:[link]

It shows:
FPS - frames per second
ms - milliseconds per frame
mem - memory flash player currently uses.
graph - FPS graph showing how FPS changes over time

Easy adding to a project. Just Copy/Paste from this fla to your project.

Parameters you can configure on top of FPS code without much insight in code itself:
Color - for text and graph in hex form.
graph width and height for graph size.
Automatically scales FPS based on graph size and System.frameRate

Well if find bugs/make upgrades/ have suggestions etc etc comment here.
© 2008 - 2024 wonderwhy-ER
Comments18
Join the community to add your comment. Already a deviant? Log In
psykopath's avatar
Just looking at the source for this, and I see you copy it into a new bitmap and back, just to scroll it 1 pixel? Why not use BitmapData.scroll()?