Gltf instancing

Hi,

When instancing a gltf i see the draw calls are increased by the number of instances. Am I wrong in assuming this should not be the case? Taking an instancing example with babylon meshes, I don’t see draw calls increasing.

PG with glb:

Instances: 4211

Draw calls: 4,223

PG with regular meshes:

Instances: 9999

Draw calls: 2

Some GLTF can not be instantiated. cc @bghgary for the exact rules if he recalls ?

If you would set mesh.parent to null instead of setting newInstance.parent it would be fine then Meshes: 4224

Draw calls: 11 (for the mesh and each clone you made)

1 Like