Merge pull request #1043 from Subv/timing

Use an approximated amortized amount of ticks when advancing timing.
This commit is contained in:
bunnei 2018-08-12 22:31:55 -04:00 committed by GitHub
commit fecffeb0dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View file

@ -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();
}