mirror of https://github.com/stella-emu/stella.git
fixed jitter emulation
This commit is contained in:
parent
9e973bc955
commit
5a558a6afe
|
@ -84,7 +84,7 @@ void JitterEmulation::frameComplete(Int32 scanlineCount, Int32 vsyncCycles)
|
||||||
{
|
{
|
||||||
const Int32 scanlineDifference = scanlineCount - myLastFrameScanlines;
|
const Int32 scanlineDifference = scanlineCount - myLastFrameScanlines;
|
||||||
|
|
||||||
if(abs(scanlineDifference) < myScanlineDelta
|
if(abs(scanlineDifference) >= myScanlineDelta
|
||||||
&& abs(myJitter) < static_cast<Int32>(myRandom.next() % myJitterLines))
|
&& abs(myJitter) < static_cast<Int32>(myRandom.next() % myJitterLines))
|
||||||
{
|
{
|
||||||
// Repeated invalid frames cause randomly repeated jitter
|
// Repeated invalid frames cause randomly repeated jitter
|
||||||
|
|
Loading…
Reference in New Issue