From 529ad6ac82a1e5ad83d60f7e77eb6b8fd2374d70 Mon Sep 17 00:00:00 2001 From: eladash Date: Fri, 15 Mar 2019 19:06:26 +0200 Subject: [PATCH] rsx: Improve vblank accuracy --- rpcs3/Emu/RSX/RSXThread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index c2d22bb7a197..fe334cc622dc 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -471,13 +471,14 @@ namespace rsx thread_ctrl::notify(*intr_thread); } + std::this_thread::sleep_for(15ms); continue; } while (Emu.IsPaused() && !m_rsx_thread_exiting) - std::this_thread::sleep_for(10ms); + std::this_thread::sleep_for(16ms); - std::this_thread::sleep_for(1ms); // hack + std::this_thread::sleep_for(500us); // Hack } });