performance of shaders


#1

Hi all,

I tried to create a custom shader and set into CCSprite, I basically copied the default shader so there’s not much work, but the fps dropped from 60 to 45.
Can anyone help ?

This is the code I link the customized shader:

*sprites[i]>setShaderProgram;
_highlightShader
>link;
*highlightShader->updateUniforms();