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; continue;
} }
while (Emu.IsPaused() && !m_rsx_thread_exiting) if (Emu.IsPaused())
thread_ctrl::wait_for(wait_sleep); {
// Save the difference before pause
start_time = get_system_time() - start_time;
thread_ctrl::wait_for(100); // Hack while (Emu.IsPaused() && !m_rsx_thread_exiting)
{
thread_ctrl::wait_for(wait_sleep);
}
// Restore difference
start_time = get_system_time() - start_time;
}
thread_ctrl::wait_for(100);
} }
}); });