ActionScript 3 / Flash: Simple FPS Counter Class with Average FPS, FPS Threshold, etc

I wanted a nice, simple, small FPS counter that displayed an Average FPS over a set number of frames, eg: 22fps average over 10 frames.

I managed to find a basic class that I modified to include an average FPS parameter and a threshold parameter that turns the FPS Background to RED if the FPS drops below the threshhold.

Source: [fps_example]

Leave a Reply

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