4 ms·
WebVR concerns me because of the garbage collector and the stop-the-world behaviors you see in browsers. VR is touchy. If you drop frames, you don't notice it j
by eropple 10y ago
WebVR concerns me because of the garbage collector and the stop-the-world behaviors you see in browsers. VR is touchy. If you drop frames, you don't notice it just with your eyes, you notice it with your stomach. It feels really, really bad. Getting adequate perf out of a browser for this stuff seems really implausible.
- corv 10y agoWebAssembly is coming
- Arathorn 10y agothat's what we thought, but you get a solid 60fps on a typical laptop in a 4 way webrtc video conference, or when showing 4K 360 degree video (plus a video call). My Samsung S5 manages about 30fps in Cardboard mode, which is adequate for Cardboard, and on a proper gaming rig it works flawlessly with a Vive or Rift. Seriously: try the demo at https://matrix.org/vrdemo https://matrix.org/vrdemo in browser and see! The only perf problems we've had are when using VP8 or VP9 for WebRTC video, whereas H.264 (which the demo prefers) correctly decodes efficiently in hardware... and on Firefox where unfortunately https://bugzilla.mozilla.org/show_bug.cgi?id=1246410 https://bugzilla.mozilla.org/show_bug.cgi?id=1246410 slows down the 360 video significantly (to around 20fps for 4K video on the gaming rig) relative to Chromium which manages a solid 30fps (which is the source framerate). The only motion sickness we've seen has been when editing the skiing videos - the worst thing in the world is if the cameraman wobbles the camera whilst getting up from the floor but your head doesn't move...
- Arathorn 10y agobtw, hit 'i' in the demo to see the stats. we currently cap the framerate at 60fps.
- eropple 10y agoVideo is one thing--you can offload a lot more of that out of JS-land, yeah? What worries the hell out of me is the rest of WebVR. I mean--we see frame drop in Canvas on midrange PCs that's really hard to erase (sincerely, My Last Two Days Of Free Time). The prospect of that sort of mess in VR has me worried. I have a strong stomach so I may play with it once my replacement Vive gets here, but...man. This stuff is so razor-thin on the margins that it really worries me and will continue to so long as we're stuck with stop-the-world GC (and to be clear, of course you can write GC-friendly code...but it's a lot harder in JavaScript, IME, than in Java) anywhere in this stack.
- ngokevin 10y agoI'd expect 2D canvas to have worse performance than WebGL. I don't think that's a fair comparison for WebVR. Try out https://aframe.io/a-painter/ https://aframe.io/a-painter/ when you get your Vive in Firefox Nightly and try out the performance. It's native like for me.
- avaer 10y agoAnother thing that seemed really implausible not long ago: that Javascript could be used to build an application. At all. Many people are already getting 90 frames per second out of the browser, so I don't think it's even a matter of plausibility at this point.
- _pmf_ 10y ago> Another thing that seemed really implausible not long ago: that Javascript could be used to build an application. At all. DHTML was introduced in 1997. Do you define this as "not long ago"?
- SirHound 10y ago"DHTML" was a term long dead while people still thought you couldn't make apps in JS. I doubt he was referring to snow scripts.
- M_Grey 10y agoSo... what I'm reading is that a whole new attack vector for angry teenagers will be to mess up your display in a way designed to make you puke? Thrilling.
- abstractbeliefs 10y agoHey, we already do it at my university. The Vive was a huge step up from the Rift DK2 (which is hardly a fair comparison, but that's what we had) in terms of user rejection due to sickness, but today we still have people pranking each other: gently tap the tall tripods we have the lighthouses on and it produces a barely perceptible rocking for the VR user, mostly perceptible in their stomach. It takes no more than 30s to go from perfectly fine to crippling nausea for most people in my lab.
- eropple 10y agoFriends who work in this space treat this as a fireable offense. For the uninitiated, do not under any circumstances fuck with somebody in a headset--the feeling it causes can wreck an entire day. I have a strong stomach--and in VR, games that move independent of the camera don't bother me unless it's prolonged or super sudden--but I was useless for six hours after somebody ran into the lighthouse stand really hard (and caught it, but not before it swung about 30 degrees). I dropped to my knees and had to tear the headset off my head. It ranks up there with the worst experiences of my life.
- ngokevin 10y agoI think OP meant virtually. Tapping on lighthouses is just like physically hitting them. Virtual attacks have bigger implications.
- Arathorn 10y agopretty sure angry teenagers can mess up your display in ways to make you puke without using WebVR :D
- ngokevin 10y agoCheck out the room scale Vive/Rift demos at https://github.com/aframevr/aframe https://github.com/aframevr/aframe. They run on Firefox Nightly, 90FPS, low latency. The Web has a bad stigma associated with its 2D pieces, but it's definitely not implausible.