Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thrust26 committed Dec 29, 2024
1 parent 42dda2b commit 907f687
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/emucore/tia/frame-manager/FrameManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ void FrameManager::onSetVblank(uInt64 cycles)
if (myVblank) // VBLANK switched on
{
myVblankStart = cycles;
cerr << ", VBLANK ON " << cycles;
}
else // VBLANK switched off
{
myVblankCycles += cycles - myVblankStart;
cerr << ", VBLANK OFF " << cycles;
}
}

Expand All @@ -141,14 +139,12 @@ void FrameManager::onSetVsync(uInt64 cycles)
if(myVblankStart != INT64_MAX)
myVblankCycles += cycles - myVblankStart;
setState(State::waitForFrameStart);
cerr << ", VSYNC waitForVsyncEnd " << cycles << " \n";
}
else {
myVsyncStart = cycles;
myVblankStart = myVblank ? cycles : INT64_MAX;
myVblankCycles = 0;
setState(State::waitForVsyncEnd);
cerr << ", VSYNC waitForFrameStart " << cycles;
}
}

Expand Down

0 comments on commit 907f687

Please sign in to comment.