Speed-optimize Denise::translate()
dirkwhoffmann opened this issue · comments
Findings after a brief code review:
- At the end of
Denise::translate()
, the contents ofiBuffer
andmBuffer
are identical (themBuffer
is modified later indrawSprites()
). - The
iBuffer
is only needed in lines with HAM mode enabled.
Optimization:
- At the end of
Denise::translate()
, check if this line is a HAM line. If yes, create theiBuffer
by duplicating themBuffer
. Otherwise, go without theiBuffer
.