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

Remove unnecessary tracker tracking #159

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

Conversation

vilhalmer
Copy link
Collaborator

@vilhalmer vilhalmer commented Nov 20, 2024

I was testing with Quest via Steam Link and discovered that switching between controllers and hand tracking results in never having controllers again. After going around and around with this code, I found that it doesn't really need to exist at all, we just track the hands in variables so we can clear the variables later. This must be a leftover from when input 2.0 support was added.

I also discovered an issue in XRServer itself that I left a comment about, I will try to get that fixed up upstream as soon as I can.

These variables are unused for anything except clearing them later, and
prevent switching between controller sets at runtime, like when
switching from controllers to hand tracking and back.
When detaching a tracker which has become inactive, verify that it still
owns its name in the XRServer. If a newer tracker has replaced it, for
example when switching between controllers and hand tracking, attempting
to remove it will accidentally remove the newer one instead.

This should be fixed upstream, but for now this workaround avoids the
problem and will be forward compatible.
Copy link

@fire fire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idea makes sense. did not test

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