]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
showfps 2: always show mspf
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 Sep 2009 09:19:57 +0000 (09:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 18 Sep 2009 09:19:57 +0000 (09:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9212 d7cf8633-e32d-0410-b094-e92efae38249

sbar.c

diff --git a/sbar.c b/sbar.c
index 56d7a7a5435c28f51d6adc1871df3d0456c405a6..586c9aaea2fd121da191f5b5f884e5c0f4bb6e6d 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1129,7 +1129,9 @@ void Sbar_ShowFPS(void)
                framecount++;
                calc = framerate;
 
-               if ((red = (calc < 1.0f)))
+               if(showfps.integer == 2)
+                       dpsnprintf(fpsstring, sizeof(fpsstring), "%7.3f mspf", (1000.0 / calc));
+               else if ((red = (calc < 1.0f)))
                        dpsnprintf(fpsstring, sizeof(fpsstring), "%4i spf", (int)(1.0 / calc + 0.5));
                else
                        dpsnprintf(fpsstring, sizeof(fpsstring), "%4i fps", (int)(calc + 0.5));