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