mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
sys_timer_usleep: give Linux a partial exemption
This commit is contained in:
parent
ec6d1fb1ba
commit
df489d786a
1 changed files with 5 additions and 1 deletions
|
|
@ -296,9 +296,13 @@ error_code sys_timer_usleep(ppu_thread& ppu, u64 sleep_time)
|
||||||
|
|
||||||
if (sleep_time)
|
if (sleep_time)
|
||||||
{
|
{
|
||||||
|
#ifdef __linux__
|
||||||
|
constexpr u32 host_min_quantum = 100;
|
||||||
|
#else
|
||||||
// Host scheduler quantum for windows (worst case)
|
// Host scheduler quantum for windows (worst case)
|
||||||
// NOTE: On ps3 this function has very high accuracy
|
// 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 passed = 0;
|
||||||
u64 remaining;
|
u64 remaining;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue