borismus / webvr-boilerplate

A starting point for web-based VR experiences that work on all VR headsets.
Apache License 2.0
1.8k stars 451 forks source link

Adding an fps counter? #140

Closed RuiOrey closed 8 years ago

RuiOrey commented 8 years ago

Hi, I don't know if is interesting or in the scope of this project ... but would like to leave a suggestion of adding a flag to put some kind of fps counter on-screen.. Some way of benchmarking in several devices...

I'm using the regular stats.js but it disappears when entering vr mode in my mobile.

Thank you and greak work!

borismus commented 8 years ago

Sorry, out of scope. Take a look at @Toji's webvr-samples, he has a WebGL based FPS counter.

On Sat, May 7, 2016 at 2:05 PM Rui notifications@github.com wrote:

Hi, I don't know if is interesting or in the scope of this project ... but would like to leave a suggestion of adding a flag to put some kind of fps counter on-screen.. Some way of benchmarking in several devices...

I will try using the regular stats.js but they disappear when entering vr mode in my mobile.

Thank you and greak work!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/borismus/webvr-boilerplate/issues/140

toji commented 8 years ago

Specifically, you should be able to drop https://github.com/toji/webgl-utils/blob/master/src/wglu-stats.js into any project. It's completely standalone. Sample of how it's used: https://github.com/toji/webgl-utils/blob/master/stats-test.html

RuiOrey commented 8 years ago

Thank you!