mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-09-27 19:46:27 -05:00
nsysnet: Avoid CPU starvation when games call select in a loop
Fixes Just Dance 2018 getting stuck on a black screen during early boot
This commit is contained in:
@@ -1240,7 +1240,7 @@ void nsysnetExport_select(PPCInterpreter_t* hCPU)
|
||||
break;
|
||||
}
|
||||
// yield thread
|
||||
PPCCore_switchToScheduler();
|
||||
coreinit::OSSleepTicks(coreinit::EspressoTime::ConvertNsToTimerTicks(300000)); // sleep 0.3ms so we don't end up with a case where a single select loop starves all other CPU threads (seen in Just Dance 2018)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user