Closed cvan closed 6 years ago
currently, we were using an older version of the webvr-polyfill
but in webvr-polyfill.min.js
, there was a link to an external source map for webvr-polyfill.min.js.map
which is missing in the assets here. (the JS dist files for the new version doesn't include source maps anymore, but it should; for reference: I've filed issue immersive-web/webvr-polyfill#302).
the latest version of webvr-polyfill
now has a peer dependency of cardboard-vr-display
, which handles all the polyfilling logic for emulation of WebVR v1.1 API for Cardboard and the like.
anyway, we should update webvr-polyfill
and test it accordingly:
webvr-polyfill.min{.jspre,.jspre.meta}
files with the latest version of the webvr-polyfill
: https://raw.githubusercontent.com/immersive-web/webvr-polyfill/master/build/webvr-polyfill.min.jschrome://flags#enable-webvr
and chrome://flags#enable-gamepad-extensions
)chrome://flags#enable-webvr
and chrome://flags#enable-gamepad-extensions
)
chrome://flags#enable-generic-sensor
)the reason for the exhaustive testing is to ensure that there have been no regressions since the latest version of webvr-polyfill
that could trigger the emulation/polyfill code path (or anything that degrades rendering performance) on the various platforms + browsers.
I'm getting this error when trying to enter VR in the Android versions of Firefox and Chrome, and for both polyfill versions: the outdated and updated one. I got to reproduce it using device emulation from the Chrome devtools.
I’ve seen this error before. I swore I file it before, but I can’t find it.
can you set some breakpoints and step through it?
@caseyyee: if I recall correctly, you fixed this issue before by updating the game’s allocated memory size in Unity’s options. do you recall?
I filed https://github.com/mozilla/unity-webvr-export/issues/113 to handle a thoroughly tested upgrade of webvr-polyfill
. This issue will be for just fixing the missing external source-map.
If it runs out of memory, you get a different error altogether. Seems like a different issue.
I just tried on my Pixel XL, and the experience works and runs for me and don't seem to be seeing the raf errors.
Though, in the console, I get issue https://github.com/mozilla/unity-webvr-export/issues/64
Closing in favour of #115
https://github.com/caseyyee/unity-webvr-export/blob/e119886/Assets/WebVR/Plugins/webvr-polyfill.min.jspre#L43