Never sleep between frames with timedemo

This commit is contained in:
Denis Pauk 2021-10-16 14:38:11 +03:00
parent 012862b58d
commit fa1f5c2c84

View file

@ -142,6 +142,8 @@ Qcommon_Mainloop(void)
while (1) while (1)
{ {
#ifndef DEDICATED_ONLY #ifndef DEDICATED_ONLY
if (!cl_timedemo->value)
{
// Throttle the game a little bit. // Throttle the game a little bit.
if (busywait->value) if (busywait->value)
{ {
@ -170,6 +172,7 @@ Qcommon_Mainloop(void)
{ {
Sys_Nanosleep(5000); Sys_Nanosleep(5000);
} }
}
#else #else
Sys_Nanosleep(850000); Sys_Nanosleep(850000);
#endif #endif