From ce95a4c3dd559ec0f967d20d9423f54be10a0e84 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 9603e61e302f..755f42cbe71f 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;