mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 11:00:50 +00:00
Overclocking: Fixed inconsistency with lag counter when loading a new game
This commit is contained in:
parent
36ce4ba807
commit
c96f7d1c9c
@ -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;
|
||||
@ -400,10 +404,6 @@ void Console::Run()
|
||||
if(targetTime < 0) {
|
||||
targetTime = 0;
|
||||
}
|
||||
|
||||
if(_controlManager->GetLagFlag()) {
|
||||
_lagCounter++;
|
||||
}
|
||||
|
||||
if(_stop) {
|
||||
_stop = false;
|
||||
|
Loading…
Reference in New Issue
Block a user