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

cancel rAF for inline when immersive-ar starts #54

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

blairmacintyre
Copy link

The immersive-ar-session sample starts with an inline session and then adds another session for immersive-ar. It starts a rAF loop for each, resulting in double rendering.

The native implementation may implicitely cancel the rAF on the inline session, but that doesn't technically seem right. The webxr-polyfill does not do this.

This update cancels the inline rAF before starting the immersive rAF.

@himorin himorin changed the base branch from master to main January 15, 2021 05:04
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

Successfully merging this pull request may close these issues.

None yet

1 participant