Currently, a valid "XRDevice" must be generated (out of the box, either backed via WebVR or Cardboard). There are reasons to only support polyfilling inline without immersive-vr (perf overhead of cardboard polyfilling, 270kb for cardboard (#56)), and according to spec should always be supported, which currently can fail for some configurations of cardboard and allowCardboardOnDesktop.
It might make sense to add a new device in src/devices/*, e.g. InlineWebXRDevice which handles this barebones case. Additionally, it seems that this would eliminate the need for the allowCardboardOnDesktop configuration.
via #65
Currently, a valid "XRDevice" must be generated (out of the box, either backed via WebVR or Cardboard). There are reasons to only support polyfilling inline without immersive-vr (perf overhead of cardboard polyfilling, 270kb for cardboard (#56)), and according to spec should always be supported, which currently can fail for some configurations of
cardboard
andallowCardboardOnDesktop
.It might make sense to add a new device in
src/devices/*
, e.g.InlineWebXRDevice
which handles this barebones case. Additionally, it seems that this would eliminate the need for theallowCardboardOnDesktop
configuration.