Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精度问题导致在iOS和Android设备上越来越卡 #2

Open
lindawei opened this issue Apr 27, 2018 · 0 comments
Open

精度问题导致在iOS和Android设备上越来越卡 #2

lindawei opened this issue Apr 27, 2018 · 0 comments

Comments

@lindawei
Copy link

具体案例发生在 ccShader_Wave_VH_Frag.js (全局波浪),iOS和Android均有此问题。(web、native).
当motion值到达200左右,波浪会越来越卡。
临时的解决方式是让motion传入的值在200时重置为0,而不是1e20时才重置
precision改为highp也可以解决此问题,但怕有的设置不支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant