Don't burn the cpu while idle in multithread.
This commit is contained in:
parent
92d5643423
commit
d6048dc646
1 changed files with 3 additions and 0 deletions
|
@ -345,6 +345,9 @@ void PSP_RunLoopUntil(u64 globalticks) {
|
|||
// TODO: Something smarter? Or force CPU to bail periodically?
|
||||
while (!CPU_IsReady()) {
|
||||
gpu->RunEventsUntil(CoreTiming::GetTicks() + msToCycles(1000));
|
||||
if (coreState != CORE_RUNNING) {
|
||||
CPU_WaitStatus(cpuThreadReplyCond, &CPU_IsReady);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ERROR_LOG(CPU, "Unable to execute CPU run loop, unexpected state: %d", cpuThreadState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue