@mr_cocos wrote:
Hi!
I figured out, that my sprites are flickering while scrolled slowly at subpixel positions.
I read this issue https://github.com/cocos2d/cocos2d-x/issues/12847 and I want to ask where to set the precision to highp?
For me it seems like, it is done by CCGLProgram::complileShader automatically or do I have to change a predefined shader? For example: ccPositionTextureColor_vert, ccPositionTextureColor_frag?
I tried this already but see no difference on Windows machine (not tested right now on iPhone device).
As written in the mentioned issue by @ricardo, I inserted a border with 2 pixels around each frame and also add one additional pixel for extruding. Is that the right way? It makes things better but still not perfect. Means there is still a little bit of flickering.
Maybe you can share your latest findings? @UKDeveloper99 @stevetranby
Thanks in advance for your help!
Best regards,
Stefan
Posts: 9
Participants: 2