Overclocking: Fixed inconsistency with lag counter when loading a new game

This commit is contained in:
Souryo 2017-05-01 19:30:04 -04:00
parent 36ce4ba807
commit c96f7d1c9c

View File

@ -345,6 +345,10 @@ void Console::Run()
uint32_t currentFrameNumber = PPU::GetFrameCount();
if(currentFrameNumber != lastFrameNumber) {
if(_controlManager->GetLagFlag()) {
_lagCounter++;
}
_rewindManager->ProcessEndOfFrame();
EmulationSettings::DisableOverclocking(_disableOcNextFrame || NsfMapper::GetInstance());
_disableOcNextFrame = false;
@ -401,10 +405,6 @@ void Console::Run()
targetTime = 0;
}
if(_controlManager->GetLagFlag()) {
_lagCounter++;
}
if(_stop) {
_stop = false;
break;