aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_cpu.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-12 22:31:55 -0400
committerGitHub <noreply@github.com>2018-08-12 22:31:55 -0400
commita1aacf27d75a42da549c95cc6c85a8f30e8e2e04 (patch)
treeebd7cbbb35fd07e34f6397cde76027533d7200f4 /src/core/core_cpu.cpp
parent586fcf2742b1eee44b048cdc14c1c51e7e0371b4 (diff)
parent21fa6cb72c2a0e936b6165e2620383b13d69ee11 (diff)
Merge pull request #1043 from Subv/timing
Use an approximated amortized amount of ticks when advancing timing.
Diffstat (limited to 'src/core/core_cpu.cpp')
-rw-r--r--src/core/core_cpu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp
index 9b306faf6a..b042ee02bd 100644
--- a/src/core/core_cpu.cpp
+++ b/src/core/core_cpu.cpp
@@ -91,6 +91,7 @@ void Cpu::RunLoop(bool tight_loop) {
LOG_TRACE(Core, "Core-{} idling", core_index);
if (IsMainCore()) {
+ // TODO(Subv): Only let CoreTiming idle if all 4 cores are idling.
CoreTiming::Idle();
CoreTiming::Advance();
}