Remove unnedeed calls to GfSleep()

This is now instead accomplished with max. refresh rate.
This commit is contained in:
Xavier Del Campo Romero 2022-08-02 00:33:39 +02:00
parent 73d44acf0e
commit e1c15d15f7
8 changed files with 0 additions and 34 deletions

View File

@ -278,9 +278,4 @@ void GfEventLoop::recompute()
// Call the 'recompute' callback if any.
if (_pPrivate->cbRecompute)
_pPrivate->cbRecompute();
// ... otherwise let the CPU take breath (and fans stay at low and quiet speed,
// which would not be the case if really doing nothing).
else
SDL_Delay(1); // ms.
}

View File

@ -486,9 +486,6 @@ configure_for_joy_axis:
return;
}
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
/* Push button callback for each command button : activate input devices action collection loop */

View File

@ -279,9 +279,6 @@ Idle2(void)
return;
}
}
/* Let CPU take breath (and fans stay at low and quite speed) */
GfSleep(0.001);
}

View File

@ -195,9 +195,6 @@ Idle2(void)
return;
}
}
/* Let CPU take breath (and fans stay at low and quite speed) */
GfSleep(0.001);
}

View File

@ -163,9 +163,6 @@ Idle2(void)
return;
}
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
static void

View File

@ -95,11 +95,6 @@ static void splashIdle()
// And now it's done, remember it.
splBackgroundWorkDone = true;
}
else
{
// Wait a little, to let the CPU take breath.
GfSleep(0.001);
}
// Close if the splash screen delay is over.
if (splTimedOut)

View File

@ -543,9 +543,6 @@ HostServerIdle(void)
GfuiApp().eventLoop().postRedisplay();
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
@ -580,9 +577,6 @@ ClientIdle(void)
GfuiApp().eventLoop().postRedisplay();
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
static void

View File

@ -541,9 +541,6 @@ HostServerIdle(void)
GfuiApp().eventLoop().postRedisplay();
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
@ -578,9 +575,6 @@ ClientIdle(void)
GfuiApp().eventLoop().postRedisplay();
}
/* Let CPU take breath (and fans stay at low and quiet speed) */
GfSleep(0.001);
}
static void