Why unroll loop in glsl is more efficient? Thanks!

why unroll loop in glsl is more efficient? Thanks!

It may be. It may not be. It depends on the implementation, the compiler and the hardware.

1 Like

Thank! what’s the common reason if it was?
reduce the GPR? no need to check the condition each loop? or other things? Thanks!