immersive-web / cardboard-vr-display

A JavaScript implementation of a WebVR 1.1 VRDisplay
https://immersive-web.github.io/cardboard-vr-display
Apache License 2.0
91 stars 43 forks source link

Limit the amount of Sensor Fusion warnings when timestamps are invalid #9

Closed jsantell closed 6 years ago

jsantell commented 6 years ago

Via https://github.com/googlevr/webvr-polyfill/issues/201, on iOS and Firefox for Android, these invalid timestamp warnings can flood the console, while the pose estimation still works. Use the warnOnce method to silence the flood of warnings. Unclear on which platforms this was throwing warnings and not working. But this should quiet things up when the sensor fusion is still working fine.

Fixes https://github.com/googlevr/webvr-polyfill/issues/201.