immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
987 stars 474 forks source link

FPS counter in AR immersive #129

Open sophie1000 opened 2 years ago

sophie1000 commented 2 years ago

Hi, I would like to customize the appearance of the FPS counter, but i can't find from where it does come from in the code. Anyone knows ? Thank you

bialpio commented 2 years ago

I believe it is StatsViewer, which lives in stats-viewer.js file. Looks like it's added automatically to a Scene and then the samples that don't need it disable it explicitly via scene.enableStats(false).