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
commitfecffeb0ddedeef0f6223e8a2c53cca3baac70ad (patch)
treeebd7cbbb35fd07e34f6397cde76027533d7200f4 /src/core/core_cpu.cpp
parent9608f51cdee2dd1d2bb493b02b109b1b280dfc28 (diff)
parentd9237660429adaa9f549d10e79252a713f1da874 (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 9b306faf6..b042ee02b 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();
}