As I briefly mentioned in another thread my bottleneck in a scene is the animation:
This scene has two instanced animated objects (plus the original mesh) loaded from a gltf file with
container.instantiateModelsToScene. At first glance I thought this was caused by the bone animation, but it turns out this is not the case.
The problem is reproduced here: https://www.babylonjs-playground.com/#4ZVNJJ#3 Moving the meshes (by setting their position and direction) makes the fps fall to around 30 to 40fps. If they are static the performance is back to 60fps. There’s a flag
animate to control this behavior (note that the objects are not visible with animate = true, they’re off screen).
What is going on? What can be done to improve this?