Microoptimization: avoid function dispatch overhead.

This commit is contained in:
Christian Speckner 2017-09-17 14:12:14 +02:00
parent 7d72265088
commit c682dd1c27
1 changed files with 1 additions and 3 deletions

View File

@ -1153,7 +1153,7 @@ void TIA::cycle(uInt32 colorClocks)
else
tickHframe();
if (myCollisionUpdateRequired) updateCollision();
if (myCollisionUpdateRequired && !myFrameManager.vblank()) updateCollision();
}
if (++myHctr >= 228)
@ -1271,8 +1271,6 @@ void TIA::cloneLastLine()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void TIA::updateCollision()
{
if (myFrameManager.vblank()) return;
myCollisionMask |= (
myPlayer0.collision &
myPlayer1.collision &