instant showing of fps (show_fps 4)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@993 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-05-08 05:57:15 +00:00
parent 834cb34306
commit a719bc1cf2

View file

@ -1009,6 +1009,11 @@ void SCR_DrawFPS (void)
lastframetime = t;
}
}
else if (show_fps.value == 4) //alternate mode that displays the highest noticed
{
lastfps = 1/host_frametime;
lastframetime = t;
}
sprintf(str, "%3.1f FPS", lastfps);
SCR_StringXY(str, show_fps_x.value, show_fps_y.value);