vAmiga icon indicating copy to clipboard operation
vAmiga copied to clipboard

Speed-optimize Denise::translate()

Open dirkwhoffmann opened this issue 1 year ago • 1 comments

Findings after a brief code review:

  • At the end of Denise::translate(), the contents of iBuffer and mBuffer are identical (the mBuffer is modified later in drawSprites()).
  • 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 the iBuffer by duplicating the mBuffer. Otherwise, go without the iBuffer.

dirkwhoffmann avatar Jan 31 '24 12:01 dirkwhoffmann

Speed comparison (Kick 1.3, hand & disk boot screen):

Upper: Latest dev-branch (frame skipping, audio fast path, on-demand-iBuffer): Lower: vAmiga 2.5

Bildschirmfoto 2024-01-31 um 13 40 42

dirkwhoffmann avatar Jan 31 '24 12:01 dirkwhoffmann