diff options
| author | 2018-02-18 13:22:19 -0500 | |
|---|---|---|
| committer | 2018-02-18 13:25:48 -0500 | |
| commit | 94ee8fc97b6e3373d801d70efdd1b604ad03b85e (patch) | |
| tree | cfff767e6c98925e2394fdd337e6d862b5512d8b /src/core/hle/kernel/thread.cpp | |
| parent | Merge pull request #199 from FernandoS27/update_dynarmic (diff) | |
| download | yuzu-94ee8fc97b6e3373d801d70efdd1b604ad03b85e.tar.gz yuzu-94ee8fc97b6e3373d801d70efdd1b604ad03b85e.tar.xz yuzu-94ee8fc97b6e3373d801d70efdd1b604ad03b85e.zip | |
Kernel/IPC: Add a small delay after each SyncRequest to prevent thread starvation.
Ported from citra PR #3091
The delay specified here is from a Nintendo 3DS, and should be measured in a Nintendo Switch.
This change is enough to prevent Puyo Puyo Tetris's main thread starvation.
Diffstat (limited to 'src/core/hle/kernel/thread.cpp')
| -rw-r--r-- | src/core/hle/kernel/thread.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 1a33cc6cb..130b669a0 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp | |||
| @@ -284,6 +284,7 @@ void Thread::ResumeFromWait() { | |||
| 284 | case THREADSTATUS_WAIT_SYNCH_ANY: | 284 | case THREADSTATUS_WAIT_SYNCH_ANY: |
| 285 | case THREADSTATUS_WAIT_ARB: | 285 | case THREADSTATUS_WAIT_ARB: |
| 286 | case THREADSTATUS_WAIT_SLEEP: | 286 | case THREADSTATUS_WAIT_SLEEP: |
| 287 | case THREADSTATUS_WAIT_IPC: | ||
| 287 | break; | 288 | break; |
| 288 | 289 | ||
| 289 | case THREADSTATUS_READY: | 290 | case THREADSTATUS_READY: |