Vorion Posted August 21, 2018 Share Posted August 21, 2018 Hi, I've got a strange problem with the drawCallsCounter from SceneInstrumentation, it only outpus 0 as the current (and min/max) value. Here is a playground example: https://www.babylonjs-playground.com/indexStable.html#0QHUKY#3 The strange thing about it is, if I output the drawCallsCounter object in the console, and click and the getter for current, it displays the correct value. This also seems to happen for activeEvaluationTime and ParticlesRenderTime. It worked before, so I don't know exactly whats happening here, maybe it's on my end. Switching from the latest preview release (3.3.0-beta3) to 3.2.0 stable doesn't change anything. Another problem I encountered, is the gpu frame time, which also only shows 0, but the console output of the object doesn't show anything different, and the gpu frame time has been this way for quite a while, so I don't think this is related to the other problem. Did I do something wrong here? Thanks Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 21, 2018 Share Posted August 21, 2018 GPU time has been disable by browser vendor due to Spectre and Meltdown: https://bugs.chromium.org/p/chromium/issues/detail?id=595172 The code is still in as they might re-enable it once a better timer fix will be found. About the rest you can only access the value at the end of the render : https://www.babylonjs-playground.com/indexStable.html#0QHUKY#4 Quote Link to comment Share on other sites More sharing options...
Vorion Posted August 21, 2018 Author Share Posted August 21, 2018 Ah ok, thank you, didn't know that. I think it would a good idea, to add a note to the documentation (http://doc.babylonjs.com/how_to/optimizing_your_scene#instrumentation) about it. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted August 21, 2018 Share Posted August 21, 2018 Yup I ll do ASAP, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.