Faster pixel skipping on 4x4, 2x2 tiers
Iterate at fill_masks[fill_level]+1 instead of every pixel and then skipping, saves a smidge of time view 1 with expanded memory: 10.514 ms/px before 10.430 ms/px after
This commit is contained in:
parent
dcf5a3f59e
commit
d157fe1306
1 changed files with 14 additions and 8 deletions
22
mandel.s
22
mandel.s
|
@ -1737,12 +1737,15 @@ update_status:
|
|||
|
||||
skipped:
|
||||
|
||||
; sx += fill_level[fill_masks] + 1
|
||||
ldx fill_level
|
||||
lda fill_masks,x
|
||||
clc
|
||||
lda sx
|
||||
adc #1
|
||||
adc #1 ; will never carry
|
||||
adc sx
|
||||
sta sx
|
||||
lda sx + 1
|
||||
adc #0
|
||||
lda #0
|
||||
adc sx + 1
|
||||
sta sx + 1
|
||||
|
||||
lda sx
|
||||
|
@ -1752,12 +1755,15 @@ skipped:
|
|||
|
||||
loop_sx_done:
|
||||
|
||||
; sy += fill_level[fill_masks] + 1
|
||||
ldx fill_level
|
||||
lda fill_masks,x
|
||||
clc
|
||||
lda sy
|
||||
adc #1
|
||||
adc #1 ; will never carry
|
||||
adc sy
|
||||
sta sy
|
||||
lda sy + 1
|
||||
adc #0
|
||||
lda #0
|
||||
adc sy + 1
|
||||
sta sy + 1
|
||||
|
||||
lda sy
|
||||
|
|
Loading…
Reference in a new issue