mirror of https://github.com/stella-emu/stella.git
Changed in scanlines per frame are now actually done every frame, and every
8 frames. This is necessary for ROMs that 'abuse' the system and have inconsistent scanline counts on every single frame. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2561 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
dc33420c95
commit
029ea006f6
|
@ -623,7 +623,7 @@ inline void TIA::endFrame()
|
||||||
myPALFrameCounter++;
|
myPALFrameCounter++;
|
||||||
|
|
||||||
// Recalculate framerate. attempting to auto-correct for scanline 'jumps'
|
// Recalculate framerate. attempting to auto-correct for scanline 'jumps'
|
||||||
if(myFrameCounter % 8 == 0 && myAutoFrameEnabled)
|
if(myAutoFrameEnabled)
|
||||||
{
|
{
|
||||||
myFramerate = (myScanlineCountForLastFrame > 285 ? 15600.0 : 15720.0) /
|
myFramerate = (myScanlineCountForLastFrame > 285 ? 15600.0 : 15720.0) /
|
||||||
myScanlineCountForLastFrame;
|
myScanlineCountForLastFrame;
|
||||||
|
|
Loading…
Reference in New Issue