No more 100% CPU use in GUI for real this time [SDL]. Hopefully fixed netplay - at least, the code makes sense now [Win, SDL].

This commit is contained in:
grinvader
2005-02-01 15:30:50 +00:00
parent cc66b807b9
commit 146dd7150f
5 changed files with 442 additions and 44 deletions

View File

@@ -756,9 +756,6 @@ void Start36HZ(void)
update_ticks_pc2 = UPDATE_TICKS_UDP;
update_ticks_pc = UPDATE_TICKS_GUI;
//Quick fix for GUI CPU usage
if (GUIOn2) usleep(1000);
start = sem_GetTicks();
start2 = sem_GetTicks();
T60HZEnabled = 0;
@@ -1048,6 +1045,9 @@ void UpdateVFrame(void)
const int SPCSize = 256;
int i;
//Quick fix for GUI CPU usage
if (GUIOn2) usleep(1000);
CheckTimers();
Main_Proc();