mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
rsx: Fix vblank signals flood after Emu.Resume()
This commit is contained in:
parent
cbecbc264e
commit
29cddc30f0
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user