Replies: 1 comment 5 replies
-
You should look into using instancedMesh, take a look at this example https://codesandbox.io/embed/r3f-floating-diamonds-prb9t |
Beta Was this translation helpful? Give feedback.
5 replies
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.
-
Hi all,
I have a big project here where I have a GLTF asset (~800 vertices) rendered more than 1500 times.
I decided to generate the GLTF model with GltfJSX (whick works pretty well), but I start having performance issues and reaching 60fps, even on a good computer, is hard.
So I'm wondering if there's a way to improve my architecture.
I have concerns about the reusability of my model. Currently this is the code used:
So my main concern are:
Is the geometry loaded is reused by all components ? I tried loading the geometry/materials at a higher level (in MainComponent), but no perf difference. What's the best way to do this ?
Are they any other things I can do to improve perfs (knowing it's a static scene, you can just rotate around).
Could the GLTFJSX component be an issue if used hundred times ?
Beta Was this translation helpful? Give feedback.
All reactions