Hello,
I have a puzzling problem that I’ve tried to fix for a long time now, as a final option I have decided to ask here.
I’m using react-three-fiber and loading a model like so:
const { nodes, materials, scene, animations } = useGLTF(
"/animatedAvatarNew.glb"
) as GLTFResult;
and I am also preloading it using:
useGLTF.preload("/animatedAvatarNew.glb");
However when the model enters the frustum of my camera it causes horrible jank. I have tried using Preload from Drei like so:
<Preload all />
Drei documentation says this will cause models to preload even if they are not in the frustum. However this is not fixing my problem. Nothing seems to work. Any ideas?
If you would like to check the repo it’s as follows: https://github.com/IdrisIsra/threelayout
Thank you!