code cleanup

This commit is contained in:
thrust26 2024-12-29 12:15:12 +01:00
parent d4b5cf6659
commit 727917773e
1 changed files with 0 additions and 4 deletions

View File

@ -124,12 +124,10 @@ void FrameManager::onSetVblank(uInt64 cycles)
if (myVblank) // VBLANK switched on if (myVblank) // VBLANK switched on
{ {
myVblankStart = cycles; myVblankStart = cycles;
cerr << ", VBLANK ON " << cycles;
} }
else // VBLANK switched off else // VBLANK switched off
{ {
myVblankCycles += cycles - myVblankStart; myVblankCycles += cycles - myVblankStart;
cerr << ", VBLANK OFF " << cycles;
} }
} }
@ -141,14 +139,12 @@ void FrameManager::onSetVsync(uInt64 cycles)
if(myVblankStart != INT64_MAX) if(myVblankStart != INT64_MAX)
myVblankCycles += cycles - myVblankStart; myVblankCycles += cycles - myVblankStart;
setState(State::waitForFrameStart); setState(State::waitForFrameStart);
cerr << ", VSYNC waitForVsyncEnd " << cycles << " \n";
} }
else { else {
myVsyncStart = cycles; myVsyncStart = cycles;
myVblankStart = myVblank ? cycles : INT64_MAX; myVblankStart = myVblank ? cycles : INT64_MAX;
myVblankCycles = 0; myVblankCycles = 0;
setState(State::waitForVsyncEnd); setState(State::waitForVsyncEnd);
cerr << ", VSYNC waitForFrameStart " << cycles;
} }
} }