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