medium10 pts · first answer countsrenderingshadersperformance
Branches that cost both ways
A pixel shader has an if/else with two expensive paths. Neighbouring pixels often take different paths. Why can this be slow?
Discussion 0
Join free to post in the discussion.
Related questions
- Spawning many bulletsGame Developer
- GetComponent every frameGame Developer
- Why use a sprite atlasGame Developer
- Why textures have mipmapsGame Developer
- Why games pool objectsGame Developer
- Many sprites, many draw callsGame Developer
- Batching rocks that never moveGame Developer
- Main job of a vertex shaderGame Developer