summaryrefslogtreecommitdiff
path: root/src/core/hle/hle.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2014-12-25 22:52:40 -0500
committerGravatar bunnei2014-12-25 22:52:40 -0500
commite5ddbfee0211642858f0114691966db7c17e5f7e (patch)
tree44d89c26c5f4dc976dadd7322c9269f026c7b98d /src/core/hle/hle.cpp
parentMerge pull request #330 from purpasmart96/new_srv (diff)
parentGPU: Further improve synchronization. (diff)
downloadyuzu-e5ddbfee0211642858f0114691966db7c17e5f7e.tar.gz
yuzu-e5ddbfee0211642858f0114691966db7c17e5f7e.tar.xz
yuzu-e5ddbfee0211642858f0114691966db7c17e5f7e.zip
Merge pull request #339 from bunnei/fixup-gsp-synch
Fixup gsp synch
Diffstat (limited to 'src/core/hle/hle.cpp')
-rw-r--r--src/core/hle/hle.cpp8
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) {
43 43
44void Reschedule(const char *reason) { 44void Reschedule(const char *reason) {
45 _dbg_assert_msg_(Kernel, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason."); 45 _dbg_assert_msg_(Kernel, reason != 0 && strlen(reason) < 256, "Reschedule: Invalid or too long reason.");
46
47 // TODO(bunnei): It seems that games depend on some CPU execution time elapsing during HLE
48 // routines. This simulates that time by artificially advancing the number of CPU "ticks".
49 // The value was chosen empirically, it seems to work well enough for everything tested, but
50 // is likely not ideal. We should find a more accurate way to simulate timing with HLE.
51 Core::g_app_core->AddTicks(4000);
52
46 Core::g_app_core->PrepareReschedule(); 53 Core::g_app_core->PrepareReschedule();
54
47 g_reschedule = true; 55 g_reschedule = true;
48} 56}
49 57