Instanced meshes are rendered twice

The Specter.js Chromium extension showed me that two draw calls are made for a group of instanced meshes. There should only be one draw call. (Bjs version 7.21.0)

When stepping through the code the SubMesh is added to the RenderingGroup for the InstancedMesh (at index 0 of meshes.data) and another time for the Mesh (at index 2 of meshes.data).


The InstancedMeshes at index 3 and 4 don’t add further SubMeshes to the RenderingGroup.

can you please share a repro PG, I’m curious to see what happens with Spector.js

1 Like

Hey, I have created a repro PG:

I can repro. I’m taking a closer look.

3 Likes