mirror of https://github.com/stella-emu/stella.git
code cleanup
This commit is contained in:
parent
d4b5cf6659
commit
727917773e
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue