This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

chain calculations slow down sharply as the items became large

hi,all,

I have got a problem when run opengles shader on mali-t760 gpu. In the fragment shader i calcuate the color as follow:

    vec4 color = (((((Coef5*color+Coef4)*color + Coef3)*color+Coef2)*color + Coef1)*color+Coef)*color;

this formule is much slower than

   vec4 color = coef*color;  (almost 8ms slower.)

why this happen as other GPUs(such as PC gpu) do not have this problem which is just 2ms slower at most.