rsx: Fix vblank signals flood after Emu.Resume()

This commit is contained in:
Eladash 2019-10-21 14:03:35 +03:00 committed by kd-11
parent cbecbc264e
commit 29cddc30f0
1 changed files with 14 additions and 3 deletions

View File

@ -508,10 +508,21 @@ namespace rsx
continue;
}
while (Emu.IsPaused() && !m_rsx_thread_exiting)
thread_ctrl::wait_for(wait_sleep);
if (Emu.IsPaused())
{
// Save the difference before pause
start_time = get_system_time() - start_time;
while (Emu.IsPaused() && !m_rsx_thread_exiting)
{
thread_ctrl::wait_for(wait_sleep);
}
thread_ctrl::wait_for(100); // Hack
// Restore difference
start_time = get_system_time() - start_time;
}
thread_ctrl::wait_for(100);
}
});