Overscan Jitter
One of the limitations of Stella is it doesn't emulate the jitter that occurs if overscan runs longer/shorter than normal. This is a quick attempt to address this.
TIA.hxx
Change currentFrameBuffer
uInt8* currentFrameBuffer() const { return myCurrentFrameBuffer + myFramePointerOffset + myVariableScanlineJitter*160; }
Add myVariableScanlineJitter
// contains the difference between the scanline counts of the // last two frames. If non-zero the image should jitter. Int32 myVariableScanlineJitter;
TIA.hxx
Locate this bit of code in endFrame()
// Recalculate framerate. attempting to auto-correct for scanline 'jumps' if(myAutoFrameEnabled)
and add this directly above it
// save difference in scanline counts for jitter emulation myVariableScanlineJitter = myScanlineCountForLastFrame - previousCount; if (myVariableScanlineJitter < 0) myVariableScanlineJitter = --myVariableScanlineJitter / 2; else if (myVariableScanlineJitter > 0) myVariableScanlineJitter = ++myVariableScanlineJitter / 2;
Test build of Stella for Mac OS X:
Stella OS Jitter Test.app.zip
- 1
0 Comments
Recommended Comments
There are no comments to display.