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

WebGL2.0. When i add 500 entities, there will be a few seconds of severe lag. But in WebGL1.0, it's ok. #9201

Closed
caoyang0521 opened this issue Oct 14, 2020 · 3 comments

Comments

@caoyang0521
Copy link

I tracked down the code and found that it was the modernizeShader module that caused it, and when I moved the interface call to ShaderProgram, that was fixed.

屏幕快照 2020-10-14 下午3 40 58

屏幕快照 2020-10-14 下午3 41 10

@lilleyse
Copy link
Contributor

@caoyang0521 I haven't thought enough about the implications of this change but I noted it in #797 (comment).

@mramato
Copy link
Contributor

mramato commented Feb 2, 2023

@ggetz I assume this is fixed do to the recent changes with WebGL 2?

@ggetz
Copy link
Contributor

ggetz commented Feb 2, 2023

@caoyang0521 We shipped WebGL2 by default in 1.102. modernizeShader is no longer called, so this should be fixed. Thanks!

@ggetz ggetz closed this as completed Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants