mirror of https://github.com/stella-emu/stella.git
Don't jitter if frame height differes by less than 3 lines.
This commit is contained in:
parent
b30ca12731
commit
628133d2dd
|
@ -37,7 +37,8 @@ enum Metrics: uInt32 {
|
|||
initialGarbageFrames = 10,
|
||||
framesForModeConfirmation = 5,
|
||||
minStableFrames = 10,
|
||||
maxStabilizationFrames = 20
|
||||
maxStabilizationFrames = 20,
|
||||
minDeltaForJitter = 3
|
||||
};
|
||||
|
||||
static constexpr uInt32
|
||||
|
@ -255,7 +256,11 @@ void FrameManager::finalizeFrame()
|
|||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void FrameManager::handleJitter(Int32 scanlineDifference)
|
||||
{
|
||||
if (scanlineDifference == 0 || !myJitterEnabled || myTotalFrames < Metrics::initialGarbageFrames) return;
|
||||
if (
|
||||
abs(scanlineDifference) < minDeltaForJitter ||
|
||||
!myJitterEnabled ||
|
||||
myTotalFrames < Metrics::initialGarbageFrames
|
||||
) return;
|
||||
|
||||
myVblankManager.setJitter(scanlineDifference);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue