-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
Extremely slow performance with specific file #22785
Comments
I can't reproduce this on macOS with Chrome 95.0.4638.69. Viewing the asset in the three.js editor and gltf-viewer works without performance issues. On what systems/browser have you tested? |
Here is a glitch with your asset for easier testing: https://glitch.com/edit/#!/nebula-lavish-ballcap?path=index.html |
Sorry, should have added - Windows 10, Chrome 95.0.4638.69. I also updated the original post. I can verify that the same issue happens with the Glitch site, browser and machine immediately become unresponsive and the viewer never loads. |
Okay, let me check the glitch on Windows later this day. |
This is actually a duplicate of #22758 since your asset contains a lot of sRGB encoded RGB textures. The current workaround is to use |
Thanks for verifying. |
With duplicate I just mean the problem is caused by the same issue. Let's continue the discussion in #22758. |
Something that's interesting to note with this file is that it only contains one texture, which is modestly sized at 1024x1024. (Could be smaller, since it's just solid color blocks, but whatever.) While I would expect it to have a small hitch as it generates the mipmap for that single file, I wouldn't anticipate anything like the freezing behavior that @hybridherbst is describing unless that same texture is being uploaded to the GPU separately for each of the 264 different materials that use the same texture. In which case... 😱 |
This assets exhibits a long-standing issue in the engine which we have tried to solve via #17949. |
Ah. Okay then. 😰 |
Yes, |
#22846 solved this.
|
Describe the bug
A specific test file (for color space testing) is causing threejs to become unresponsive and take the entire browser with it.
To Reproduce
Steps to reproduce the behavior:
unlit=color.zip
Expected behavior
File loads and displays fast, it's pretty small.
Screenshots
The file is a test case for textures/colors/vertex colors. It has many small meshes and materials but loads very fast in other systems (e.g. Babylon Sandbox or gltf.report)
Platform:
The text was updated successfully, but these errors were encountered: