Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

WebVR loop is not correcly paused in Android #1471

Description

@MortimerGoro

Hardware

I tested it on Oculus but can happen on more platforms

Steps to Reproduce

  • Add a console.log to a WebVR sample raf
  • Move the app to the background or close the app
  • The logs still shows in the console at a high refresh rate.

Current Behavior

WebGL RAF still runs when the aplicattion is paused or closed. This will drain the device battery.

Expected Behavior

WebGL RAF must stop when the app is paused or closed.

Possible Solution

I tried the same test on the GeckoView example app and the WebGL RAF logs are paused correctly. So this seems related to VRDisplay.raf event loop.

Metadata

Metadata

Assignees

Labels

WebVR/XRbugThis issue is a software or functional defect

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions