tzachshabtay / MonoAGS

AGS (Adventure Game Studio) reimagined in Mono
https://tzachshabtay.github.io/MonoAGS/
Artistic License 2.0
27 stars 8 forks source link

OpenGL- performance: Z-culling #166

Open tzachshabtay opened 6 years ago

tzachshabtay commented 6 years ago

Z-culling is explained here.

The gist: render in 2 passes: fist, render fully opaque objects top-to-bottom so you can avoid drawing pixels twice in the same location, and then render the translucent objects bottom-to-top. This should give big performance wins in theory (because you avoid drawing pixels which you don't have to) but sounds very complicated to implement. Also, how will this work with custom shaders?