Refine NUSIZ during draw decode.

This commit is contained in:
Christian Speckner 2017-02-07 23:55:29 +01:00
parent 00bfd088d3
commit fd95231722
1 changed files with 11 additions and 0 deletions

View File

@ -90,8 +90,19 @@ void Player::nusiz(uInt8 value)
break;
}
const uInt8* oldDecodes = myDecodes;
myDecodes = DrawCounterDecodes::get().playerDecodes()[masked];
if (
myDecodes != oldDecodes &&
myIsRendering &&
(myRenderCounter - Count::renderCounterOffset) < 2 &&
!myDecodes[(myCounter - myRenderCounter + Count::renderCounterOffset + 159) % 160]
) {
myIsRendering = false;
}
if (myDividerPending == myDivider) return;
// The following is an effective description of the effects of NUSIZ during