[SDL] best way to calculate framerate per second

Stefan Hendriks stefanhen83 at gmail.com
Wed Apr 25 23:00:57 PDT 2007


The 2nd way is _the_ way as i know. You could also try to improve it
by keeping an avarage over a longer time-spanne. Meaning, you keep an
array of fps , ie, for the last minute and show the avarage of that.
If you truly want to know the fps for ONE second, just stick to the
method you mentioned.


More information about the SDL mailing list