the overall cost of this short-circuit probably negates the gains unless you have a lot of masked bytes.

also, this is a legitimate commit message length... I'm not part of your system!!!!
This commit is contained in:
Dagen Brock 2014-05-06 22:34:11 -05:00
parent dd8e5d68aa
commit 75a13ed465

View File

@ -76,9 +76,10 @@ DD_EVEN lda #0
sta SPRITE_SCREEN_IDX
sta TXTPAGE2
:lineLoop ldy SPRITE_X_IDX ;
lda (SPRITE_IMASK_P),y
beq :noPixel
:lineLoop
;ldy SPRITE_X_IDX ;
;lda (SPRITE_IMASK_P),y
;beq :noPixel
:collisionCheckDrawer
ldy SPRITE_SCREEN_IDX ; GET SCREEN PIXELS
@ -122,9 +123,9 @@ DD_ODD
sta SPRITE_SCREEN_IDX
sta TXTPAGE1
:lineLoop ldy SPRITE_X_IDX ;
lda (SPRITE_IMASK_P),y
beq :noPixel
:lineLoop ;ldy SPRITE_X_IDX ;
;lda (SPRITE_IMASK_P),y
;beq :noPixel
:collisionCheckDrawer
ldy SPRITE_SCREEN_IDX ; GET SCREEN PIXELS