About api instantiateModelsToScene (drawcall)

instantiateModelsToScene:

drawcall(???)

thinInstanceSetBuffer:

drawcall(1)

From the results, it looks like the first API’s drawcall is not 1

Hello! instantiateModelsToScene will clone instead of instantiate when the mesh has a skeleton. This is so skeleton animations work properly. I apologize, we should make this more clear. @RaananW I wonder if we could create a cloneOrInstantiateModelsToScene and deprecate the current name?

2 Likes

I think a sentence in the code doc will be enough in that case. the suggested function name will be a bit confusing (because then you will expect a boolean to decide whether or not you are cloning or instancing).

Oh we already have that then AssetContainer | Babylon.js Documentation (babylonjs.com)

1 Like