Closed Bug 1351681 Opened 9 years ago Closed 8 years ago

When ovr_SubmitFrame fails, VRDisplay.requestAnimationFrame runs unthrottled

Categories

(Core :: WebVR, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: kip, Assigned: kip)

References

Details

When the Oculus "Health and Safety Warning" is displayed in the HMD, ovr_SubmitFrame fails. This is expected behavior, as the warning is an interstitial that takes over the display until dismissed by the user. A side effect is that ovr_SubmitFrame does not block and throttle the framerate as it would in normal operation. This results in a very extreme framerate for WebVR sites that are rendering simple scenes on high-end hardware. This may cause cooling fans to kick in or battery life to be depleted when not necessary. I would suggest that we add an artificial delay before the next VRDisplay.requestAnimationFrame when ovr_SubmitFrame does not succeed.
Blocks: 1362213
This has been fixed with the refactoring in Bug 1362213
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.