No jitter simulation during the initial garbage frames.

This commit is contained in:
Christian Speckner 2017-10-17 22:05:27 +02:00
parent 2af885b417
commit 20c21177ea
1 changed files with 4 additions and 1 deletions

View File

@ -143,7 +143,10 @@ void FrameManager::setState(FrameManager::State state)
switch (myState) { switch (myState) {
case State::waitForFrameStart: case State::waitForFrameStart:
notifyFrameComplete(); notifyFrameComplete();
if (myTotalFrames > Metrics::initialGarbageFrames)
myJitterEmulation.frameComplete(myCurrentFrameFinalLines); myJitterEmulation.frameComplete(myCurrentFrameFinalLines);
notifyFrameStart(); notifyFrameStart();
myVsyncLines = 0; myVsyncLines = 0;