mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-12-01 16:51:18 +00:00
Never sleep between frames with timedemo
This commit is contained in:
parent
012862b58d
commit
fa1f5c2c84
1 changed files with 22 additions and 19 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue