mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
lv2: Ease the pain of lower end CPUs
- Avoid busy waiting in usleep code as much as possible, instead yield - Also avoid busy_wait for SPU concurrency choker
This commit is contained in:
parent
83f9be2524
commit
d48f391b41
2 changed files with 15 additions and 7 deletions
|
@ -159,10 +159,8 @@ namespace spu
|
|||
{
|
||||
if (remaining >= native_jiffy_duration_us)
|
||||
std::this_thread::sleep_for(1ms);
|
||||
else if (remaining > 100)
|
||||
std::this_thread::yield();
|
||||
else
|
||||
busy_wait();
|
||||
std::this_thread::yield();
|
||||
|
||||
const auto now = get_system_time();
|
||||
const auto elapsed = now - start;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue