-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Loading grass image in cloth animation three.js example is slower than Firefox #21843
Comments
Those canvas functions are all pretty naively implemented, with a lot of useless message passing and inefficient vector operations. |
Locally I see that the animation itself is slow, but I don't see it being slower to load. |
Btw this demo complains about a missing extension:
|
Loading the image on Android doesn't seem slow to load, but then if you refresh the page it doesn't load again ever. Did you ever see something like that @jdm? |
I have seen that, yes. Are you comparing the loading speed against Firefox? |
So I think the slow function is |
This function call ends up calling |
This takes ~100ms to execute as I imagined it would. |
https://threejs.org/examples/webgl_animation_cloth.html
It relies on https://github.com/mrdoob/three.js/blob/dev/src/extras/ImageUtils.js, so it would be worth checking how long that operation takes.
The text was updated successfully, but these errors were encountered: