Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some WebXR Implementations pause the 2D browser page in XR, make this optional? #1317

Closed
AdaRoseCannon opened this issue Mar 21, 2023 · 4 comments

Comments

@AdaRoseCannon
Copy link
Member

Some WebXR Implementations pause the 2D browser page in WebXR, this is a performance improvement and is technically correct since the page isn't visible. Unfortunately it can cause issues if you are tying bits of your WebGL scene to DOM based animations and transitions. The ability to opt out of this behaviour would be handy for developers.

Related #1316 since this would also keep the animations running.

/agenda to discuss.

@probot-label probot-label bot added the agenda Request discussion in the next telecon/FTF label Mar 21, 2023
@AdaRoseCannon
Copy link
Member Author

/facetoface lets talk about this at the face to face

@AdaRoseCannon AdaRoseCannon removed the agenda Request discussion in the next telecon/FTF label Apr 11, 2023
@emmanueljl
Copy link

Do you have a link to a WebXR app that does this? The system keyboard integration, for example, is dependent on interacting with a text input element on the page. I'd like to test whether that has issues with this "pausing".

@mkeblx
Copy link
Contributor

mkeblx commented Apr 24, 2023

Here's a basic example page where a CSS animation value is used to drive a WebXR object's position.
https://mkeblx.github.io/css2webxr/

This fails to work in WebXR if the WebXR implementation pauses the 2D browser page (e.g. like Meta Browser currently). On desktop you can see the working scenario using the Immersive Web Emulator.

@cabanier
Copy link
Member

@AdaRoseCannon are you interested in this?
If so, feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants