From daed44574b6f0fbe729d3ae26c70c4a21e140e9d Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 22 Jun 2017 21:33:32 -0500 Subject: [PATCH] fix thread --- rpcs3/Emu/RSX/RSXThread.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/RSX/RSXThread.cpp b/rpcs3/Emu/RSX/RSXThread.cpp index 6921d23721..fecde84509 100644 --- a/rpcs3/Emu/RSX/RSXThread.cpp +++ b/rpcs3/Emu/RSX/RSXThread.cpp @@ -400,9 +400,6 @@ namespace rsx // TODO: exit condition while (!Emu.IsStopped()) { - if (!Emu.IsRunning()) - std::this_thread::sleep_for(10ms); - if (get_system_time() - start_time > vblank_count * 1000000 / 60) { vblank_count++; @@ -421,6 +418,8 @@ namespace rsx continue; } + while (Emu.IsPaused()) + std::this_thread::sleep_for(10ms); std::this_thread::sleep_for(1ms); // hack }