Closed Bug 1351687 Opened 7 years ago Closed 7 years ago

Correct and Enable Oculus Pose Prediction

Categories

(Core :: WebVR, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: kip, Assigned: kip)

Details

Attachments

(1 file)

Currently, pose prediction for Oculus is disabled behind a pref, dom.vr.poseprediction.enabled.  There was not much improvement or, in some cases, a reduction of comfort-level when enabling this pref.

The cause of incorrect pose prediction appears to be that we are passing a frame index to ovr_GetPredictedDisplayTime but "0" to ovr_SubmitFrame.  As we are only accessing the Oculus API from a single thread, we can simply pass "0" as a frame index to ovr_GetPredictedDisplayTime for correct functioning.

I suggest making this change and changing the default to enabling pose prediction.
I tested this on very simple and very heavy models on SketchFab and webvr.info.

The improvement isn't greatly noticeable, but certainly is not making anything worse.
Attachment #8853106 - Flags: review?(dmu)
Comment on attachment 8853106 [details]
Bug 1351687 - Correct and Enable Pose Prediction for Oculus

https://reviewboard.mozilla.org/r/125182/#review127874

LGTM
Attachment #8853106 - Flags: review?(dmu) → review+
Pushed by kgilbert@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b519e1798774
Correct and Enable Pose Prediction for Oculus r=daoshengmu
https://hg.mozilla.org/mozilla-central/rev/b519e1798774
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: