focus on the SceneInstrument filed _activeMeshesEvaluationTime
it is a instance of PerfCounter
PerfCounter is like a sampler collector and calculate like avg = total/sampleTimes
And increasing the sampleTimes by fetchNewFrame
fetchNewFrame also can call by endMonitoring when using default parameter
My Question is:
_activeMeshesEvaluationTime have fetchNewFrame in
- scene.onBeforeAnimationsObservable
- onAfterActiveMeshesEvaluationObservable
I think is it calling fetchNewFrame more than one time?
avg = total/sampleTimes
we just increase the sampleTimes but total not changing
maybe we should remove 1. scene.onBeforeAnimationsObservable ?