Remove unnedeed calls to GfSleep()
This is now instead accomplished with max. refresh rate.
This commit is contained in:
parent
73d44acf0e
commit
e1c15d15f7
|
@ -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.
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -279,9 +279,6 @@ Idle2(void)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Let CPU take breath (and fans stay at low and quite speed) */
|
||||
GfSleep(0.001);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -195,9 +195,6 @@ Idle2(void)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Let CPU take breath (and fans stay at low and quite speed) */
|
||||
GfSleep(0.001);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -163,9 +163,6 @@ Idle2(void)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Let CPU take breath (and fans stay at low and quiet speed) */
|
||||
GfSleep(0.001);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue