mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-16 17:11:03 +00:00
dont collect statistics with cl_showfps=0
This commit is contained in:
parent
4eb2d95ccd
commit
c280c408b1
1 changed files with 4 additions and 0 deletions
|
@ -1422,6 +1422,10 @@ SCR_Framecounter(void) {
|
|||
static int frametimes[60] = {0};
|
||||
static long long oldtime;
|
||||
|
||||
/* skip statistics without show fps */
|
||||
if (cl_showfps->value < 1)
|
||||
return;
|
||||
|
||||
newtime = Sys_Microseconds();
|
||||
frametimes[frame] = (int)(newtime - oldtime);
|
||||
|
||||
|
|
Loading…
Reference in a new issue