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

Throttle vrdisplayactivate #317

Merged
merged 4 commits into from
Aug 5, 2018
Merged

Throttle vrdisplayactivate #317

merged 4 commits into from
Aug 5, 2018

Conversation

avaer
Copy link
Member

@avaer avaer commented Aug 5, 2018

Fixes #305.

Previously vrdisplayactivate was an ongoing periodic emit.

This makes it so that vrdisplayactivate is fired when:

  • window.onload has happened
  • there are no more pending resource loads happening

This hueristic seems to work well for engines. It also actually decreases latency of entering XR and decreases performance overhead since we're no longer emitting these pointless events in the render loop.

@avaer avaer merged commit 3a0516c into master Aug 5, 2018
@avaer avaer deleted the vrdisplayactivate branch August 5, 2018 06:43
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.

1 participant