fixed jitter emulation

This commit is contained in:
Thomas Jentzsch 2022-10-09 12:15:01 +02:00
parent 9e973bc955
commit 5a558a6afe
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void JitterEmulation::frameComplete(Int32 scanlineCount, Int32 vsyncCycles)
{
const Int32 scanlineDifference = scanlineCount - myLastFrameScanlines;
if(abs(scanlineDifference) < myScanlineDelta
if(abs(scanlineDifference) >= myScanlineDelta
&& abs(myJitter) < static_cast<Int32>(myRandom.next() % myJitterLines))
{
// Repeated invalid frames cause randomly repeated jitter