Understanding how to render glb files without delay

Shader compilation takes time, and that’s what causes the freezes you experience when showing a mesh for the first time.

You can try to use scene.executeWhenReady(() => { ... }, true) to make sure shaders are compiled before displaying the first frame. You can also search the forum for executeWhenReady, I think you will get a lot of posts related to this problem.