5,323
edits
Line 69: | Line 69: | ||
These are micro optimizations but they could be useful for speeding up GPU shaders in some cases. | These are micro optimizations but they could be useful for speeding up GPU shaders in some cases. | ||
Not that in high-level programming languages, these tricks can actually slow down your code. | |||
==Resources== | ==Resources== | ||
* [https://francescocirillo.com/pages/anti-if-campaign Anti If Campaign] | * [https://francescocirillo.com/pages/anti-if-campaign Anti If Campaign] | ||
* [https://code.joejag.com/2016/anti-if-the-missing-patterns.html Anti-If: The missing pattersn] | * [https://code.joejag.com/2016/anti-if-the-missing-patterns.html Anti-If: The missing pattersn] |