Performance issues with converted models with gltfjsx #2938
Unanswered
jadeworks-dev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I used gltfjsx to convert a glb file exported from Blender (with the --instance option enabled) into code.
The resulting tsx file has approximately 10,000 lines of code. When I run this scene, I get less than 20 fps even with around 500 draw calls.
However, when I load the scene using 'useGltf' and add it to the scene as primitive, I get 60 fps even with around 3,000 draw calls.
What could be the problem? Has anyone experienced something similar?
Even if I instantiate overlapping meshes, can performance degrade with longer code lengths?
Beta Was this translation helpful? Give feedback.
All reactions