• Advertisement
Sign in to follow this  

average fps

This topic is 3395 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm wondering how i would work out the average, lowest and highest fps. I've already got the fps (say 100) so whats the algorithm to work those stuff out? Thanks

Share this post


Link to post
Share on other sites
Advertisement
simply said:

if (CurrentFPS > HighestFPS) HighestFPS = CurrentFPS;
if (CurrentFPS < LowestFPS) LowestFPS = CurrentFPS;

the average FPS is a bit different, depending on how you want to have the average... Average of all frame, last 10 frames, last 2 frames, etc.
for all frames is easy:
TotalFPS = TotalFPS + CurrentFPS;
TotalFrames = TotalFrames + 1;
AverageFPS = TotalFPS / TotalFrames;

as you can see it is fairly simple

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement