Choose the Right Algorithm#

For complex shaders that run for more than a few cycles, picking the right algorithm is usually more important than low-level optimisations. It is highly recommended that a fast, well-designed algorithm be favoured over small performance tweaks to a poor algorithm. Although increasingly powerful, mobile graphics hardware is not designed to handle some of the latest techniques in desktop and console shaders. Therefore, a reduction in complexity will likely be needed from some of these techniques for mobile shader implementations.