From 3cea70447b57b46bdc1f7f694304e22008a189c0 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Fri, 21 Jan 2005 01:45:43 +0000 Subject: [PATCH] (Win32) Fix GUI using 100% cpu --- zsnes/src/win/winlink.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index c2047fad..80521731 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -2108,6 +2108,10 @@ extern int CounterB; void CheckTimers(void) { + + // Lame fix for GUI using 100% CPU + if (GUIOn2) Sleep(1); + QueryPerformanceCounter((LARGE_INTEGER*)&end2); while ((end2 - start2) >= update_ticks_pc2)