High arithmetic load

For applications that are GPU limited, and have high shader loads dominated by arithmetic processing, the solution is to reduce arithmetic complexity in the shaders.

To reduce arithmetic load:

  1. Reduce precision – mediump computation can be twice as fast as highp computation.
  2. Avoid branch divergence – divergent branches within the threads of a warp reduce arithmetic efficiency as not all threads are active when executing divergent code paths.
  3. Vectorize operations – Mali Midgard GPUs use SIMD arithmetic logic, so matrix and vector operations in the source code are more likely to vectorize well into SIMD operations than scalar operations.
  4. Move processing from per-fragment to per-vertex, to lower evaluation frequency.
Previous Next