limit timedemo to vid_maxfps * 5

This commit is contained in:
Denis Pauk 2021-10-16 18:28:37 +03:00
parent fa1f5c2c84
commit 4eb2d95ccd

View file

@ -602,9 +602,15 @@ Qcommon_Frame(int usec)
}
}
}
else if (clienttimedelta < 1000 || servertimedelta < 1000)
else
{
return;
/* minimal frame time in timedemo fps * 5 ~ 5000 */
int minframetime;
minframetime = 1000 * 1000 / 5 / vid_maxfps->value;
if (clienttimedelta < minframetime || servertimedelta < minframetime)
return;
}