From ba146b50615436f308581632a494b493e82b4733 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 18 Sep 2009 09:15:20 +0000 Subject: [PATCH] use different showfps math git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9211 d7cf8633-e32d-0410-b094-e92efae38249 --- sbar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sbar.c b/sbar.c index d93f0304..56d7a7a5 100644 --- a/sbar.c +++ b/sbar.c @@ -1119,10 +1119,7 @@ void Sbar_ShowFPS(void) newtime = Sys_DoubleTime(); if (newtime >= nexttime) { - if (framecount > 1) // frames per second - framerate = framecount / interval; - else // seconds per frame - framerate = framecount / (newtime - lasttime); + framerate = framecount / (newtime - lasttime); if (nexttime < newtime - interval * 1.5) nexttime = newtime; lasttime = newtime; -- 2.39.2