Skip to content

Optimize sprite rendering by ignoring completely occluded sprites

Lactozilla requested to merge sprite-clip-optimization into next

SRB2 is ridiculous about rendering sprites. If it clips a sprite and makes it completely hidden, it's still sorted and drawn as if it were visible. Notice how I'm facing a wall, and it's still rendering hundreds of sprites.

srb20609

With the optimization, none of these are rendered. They can't be seen, so they no longer exist.

srb20610

Edited by Lactozilla

Merge request reports