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:
Daniel Gibson 2020-08-20 17:27:09 +02:00
parent 1d42dbc541
commit 93d1dfe60d

View file

@ -145,7 +145,7 @@ Qcommon_Mainloop(void)
asm("yield"); asm("yield");
#endif #endif
if (Sys_Microseconds() - spintime >= 5000) if (Sys_Microseconds() - spintime >= 5)
{ {
break; break;
} }