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

refactor(client_openxr): ♻️ Do not recreate OpenXR session #2519

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

zmerp
Copy link
Member

@zmerp zmerp commented Nov 18, 2024

Avoid the need to restart the OpenXR session. This reduces the chances of connection issues. This PR is needed to move towards Vive eye/face tracking support that was previously disabled.

Combined eye gaze support is removed for Quest and Vive. For Pico, we force enable combined eye gaze.

Now the InteractionContext is always initialized with multimodal tracking enabled, and disabled after connection if it's disabled for server.

@zmerp zmerp force-pushed the no-session-recreation branch from c73ecf7 to 4986cb3 Compare November 23, 2024 18:12
alvr/client_openxr/src/lib.rs Outdated Show resolved Hide resolved
alvr/client_openxr/src/interaction.rs Outdated Show resolved Hide resolved
alvr/client_openxr/src/interaction.rs Show resolved Hide resolved
@The-personified-devil
Copy link
Collaborator

Also do all the additional sources get unregistered when the client goes back from using them to lobby to another streaming session not using them?

@zmerp
Copy link
Member Author

zmerp commented Nov 24, 2024

Also do all the additional sources get unregistered when the client goes back from using them to lobby to another streaming session not using them?

They don't. Maybe we should do that. technically it's not that hard since we can call select_sources() again

Copy link
Collaborator

@The-personified-devil The-personified-devil left a comment

Choose a reason for hiding this comment

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

LGTM, let's just hope that it doesn't cause more problems. Because if runtimes aren't even stable enough to fully recreate the openxr context I fear they might not handle the recreation of other tracking sources well either

@zmerp zmerp merged commit 04d9b69 into master Nov 29, 2024
9 checks passed
@zmerp zmerp deleted the no-session-recreation branch November 29, 2024 15:16
zmerp added a commit that referenced this pull request Dec 7, 2024
* refactor(client_openxr): ♻️ Do not recreate OpenXR session

* Address comments
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