diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-24 04:45:52 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-26 04:46:44 +0100 |
commit | 4783133bbd651590b5116be95a5deda31fe9f4dc (patch) | |
tree | daf8cd9fd9be955d30ba217087003ed653342cb3 /src/core/hle | |
parent | Update README.md (fix typo) (diff) | |
download | yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar.gz yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar.bz2 yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar.lz yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar.xz yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.tar.zst yuzu-4783133bbd651590b5116be95a5deda31fe9f4dc.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/hle.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index 2d314a4cf..33ac12507 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp @@ -43,7 +43,15 @@ void CallSVC(u32 opcode) { void Reschedule(const char *reason) { _dbg_assert_msg_(Kernel, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); + + // TODO(bunnei): It seems that games depend on some CPU execution time elapsing during HLE + // routines. This simulates that time by artificially advancing the number of CPU "ticks". + // The value was chosen empirically, it seems to work well enough for everything tested, but + // is likely not ideal. We should find a more accurate way to simulate timing with HLE. + Core::g_app_core->AddTicks(4000); + Core::g_app_core->PrepareReschedule(); + g_reschedule = true; } |