From df489d786a997e11538cf1eb7a8d438cf0beef26 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 3 Jun 2018 12:49:04 +0300 Subject: [PATCH] sys_timer_usleep: give Linux a partial exemption --- rpcs3/Emu/Cell/lv2/sys_timer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_timer.cpp b/rpcs3/Emu/Cell/lv2/sys_timer.cpp index 468212e02c..b7040f3ee8 100644 --- a/rpcs3/Emu/Cell/lv2/sys_timer.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_timer.cpp @@ -296,9 +296,13 @@ error_code sys_timer_usleep(ppu_thread& ppu, u64 sleep_time) if (sleep_time) { +#ifdef __linux__ + constexpr u32 host_min_quantum = 100; +#else // Host scheduler quantum for windows (worst case) // NOTE: On ps3 this function has very high accuracy - const u32 host_min_quantum = 500; + constexpr u32 host_min_quantum = 500; +#endif u64 passed = 0; u64 remaining;