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

Implement play / pause lifecycle methods, and implement show / hide methods #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dbradleyfl
Copy link

I noticed the events were firing even when I'd hidden the element with visible="false" and those events had a significant performance impact (~10fps decrease on Oculus Quest with significant htmlembed content). This pull request implements show and hide methods that remove and add the event listeners. This will improve performance when an htmlembed component is hidden with it's hide method.

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.

2 participants