mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 21:12:09 +00:00
Fix typo in Qcommon_Mainloop() that reduced performance, refs #591
We busy-looped for 5000 microseconds, i.e. 5 milliseconds, which reduces the framerate to < 200fps I guess the value was copypasted from Sys_Nanosleep() below, but that was nanoseconds of course.. Anyway, busy-looping for 5 *micro*seconds instead fixes it.
This commit is contained in:
parent
1d42dbc541
commit
93d1dfe60d
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ Qcommon_Mainloop(void)
|
|||
asm("yield");
|
||||
#endif
|
||||
|
||||
if (Sys_Microseconds() - spintime >= 5000)
|
||||
if (Sys_Microseconds() - spintime >= 5)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue