mirror of https://github.com/stella-emu/stella.git
Microoptimization: avoid function dispatch overhead.
This commit is contained in:
parent
7d72265088
commit
c682dd1c27
|
@ -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 &
|
||||
|
|
Loading…
Reference in New Issue