[SDL] best way to calculate framerate per second

Tommy Hinks tommy.hinks at gmail.com
Thu Apr 26 10:18:32 PDT 2007


I think that using the average over a longer time period than one
second would make it hard to find bottle-necks, since the fps will
take longer to react to such. As you say, one second is the standard,
and indeed the ackronym is Frames Per Second. For longer time periods
it should be called something else.

On 26/04/07, Stefan Hendriks <stefanhen83 at gmail.com> wrote:
> 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.
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>


More information about the SDL mailing list