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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user