Display absolute FPS

Hello,
how would I be able to display absolute FPS on a div?

as seen here:
image

I am aware of engine.getFps() but I am looking for a way to display absolute FPS.

Thanks

I’m not sure if this is what you need


https://doc.babylonjs.com/typedoc/classes/BABYLON.PerfCollectionStrategy#AbsoluteFpsStrategy

1 Like

Here is how it is done in the Inspector itself - Babylon.js/packages/dev/inspector/src/components/actionTabs/tabs/statisticsTabComponent.tsx at 5b1bf891bbf33608bc567246d575e8f79c3e07d3 · BabylonJS/Babylon.js · GitHub

2 Likes