pimoroni / picovision

MIT License
46 stars 15 forks source link

Clip sprites to minimize GPU workload #78

Closed MichaelBell closed 1 year ago

MichaelBell commented 1 year ago

This change clips the transparent sides and bottom of sprites automatically, minimizing the amount of patching the GPU has to do. On the bouncing logo demo this allows 1 more bouncing pirate (4 more sprites) before you start seeing the red lines of doom.

This brings the GPU performance of PNG sprites in to line with PVS sprites.

Gadgetoid commented 1 year ago

I’m impressed there are still things to optimise at this point! Looks like another release is prudent.