(Win32) Fix GUI using 100% cpu

This commit is contained in:
pagefault
2005-01-21 01:45:43 +00:00
parent 5f0e0afb4c
commit 3cea70447b

View File

@@ -2108,6 +2108,10 @@ extern int CounterB;
void CheckTimers(void) void CheckTimers(void)
{ {
// Lame fix for GUI using 100% CPU
if (GUIOn2) Sleep(1);
QueryPerformanceCounter((LARGE_INTEGER*)&end2); QueryPerformanceCounter((LARGE_INTEGER*)&end2);
while ((end2 - start2) >= update_ticks_pc2) while ((end2 - start2) >= update_ticks_pc2)