From 90490f775df07628eba478f0de62b36434aa657a Mon Sep 17 00:00:00 2001 From: eladash Date: Sat, 23 Mar 2019 09:08:36 +0200 Subject: [PATCH] Fix sys_timer_usleep specifically with 0 sleep time Remove context switch, replace it with host yield() for giving some cpu time for SPUs ans RSX --- rpcs3/Emu/Cell/lv2/sys_timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_timer.cpp b/rpcs3/Emu/Cell/lv2/sys_timer.cpp index 9603e61e30..755f42cbe7 100644 --- a/rpcs3/Emu/Cell/lv2/sys_timer.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_timer.cpp @@ -331,7 +331,7 @@ error_code sys_timer_usleep(ppu_thread& ppu, u64 sleep_time) } else { - lv2_obj::yield(ppu); + std::this_thread::yield(); } return CELL_OK;