mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-26 01:40:24 +00:00
Fix #6477 by sleeping for 16ms when minimized.
This commit is contained in:
parent
c0e6f26bb5
commit
86284aa91a
@ -135,8 +135,10 @@ void UpdateScreenScale(int width, int height) {
|
||||
}
|
||||
|
||||
void UpdateRunLoop() {
|
||||
if (windowHidden)
|
||||
if (windowHidden) {
|
||||
sleep_ms(16);
|
||||
return;
|
||||
}
|
||||
NativeUpdate(input_state);
|
||||
|
||||
{
|
||||
@ -174,7 +176,7 @@ void Core_RunLoop() {
|
||||
time_update();
|
||||
UpdateRunLoop();
|
||||
#if defined(USING_WIN_UI)
|
||||
if (!Core_IsStepping()) {
|
||||
if (!windowHidden && !Core_IsStepping()) {
|
||||
GL_SwapBuffers();
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user