Hi Babylon Community,
I have a question about performance modes. We have a scene with about 10 very complex models that are each set to enabled(false), isVisible = false and some submeshes. These are each instanced once or twice. We get only around 10 FPS on Intermediate Performance mode but 60 FPS on Aggressive mode.
Now we would like to be able to select an instance on click and move it.
We tried to “get out” of Aggressive performance mode when we click on the models, but it does not seem to be possible to switch off of this mode. We still are not able to move the instance after setting scene.performancePriority
to BABYLON.ScenePerformancePriority.BackwardCompatible.
We also tried to reproduce which part of Aggressive mode makes the performance boost possible but have not been able to reproduce it. The documentation says the difference between Intermediate and Aggressive mode is:
- scene.skipFrustumClipping = true
- mesh.doNotSyncBoundingInfo = true
- scene.renderingManager.maintainStateBetweenFrames = true
Even if we set performancePriority to Intermediate and add those specific options to our code, it does not give us the boost the Aggressive mode provides.
What else is different between the two modes? Is there any more information on this?
Or alternatively, is there a way to “turn off” Aggressive mode on click so we can move our instance?
Here is my Debug Frame Step Duration in Aggressive mode:
And here in Intermediate mode:
I did a performance test in dev tools with Intermediate mode and it showed me that we have lots of dropped frames but the frame loading it says only takes 16ms.