How do I get the "Mesh selection" value in the Inspector?

Hi there

I was looking at the Performance Profiler tab, and it seems that only “Mesh selection” is not accessible, so I want to know how to calculate it.

In scene.getPerfCollector(), I can access any other values in “FRAME STEPS DURATION” section except for Meshes selection

Is that possible to allocate scene.DoubleClickDelay according to the value if I can access that?

I really appreciate any help you can provide.

Hi,

you can use The Performance Profiler | Babylon.js Documentation , it has a meshes selection strategy you can add.

Otherwise, you can attach to the onBeforeActiveMeshesEvaluationObservable and onAfterActiveMeshesEvaluationObservable in the scene, and calculate the time between those calls