Skip to content

Conversation

@zmerp
Copy link
Member

@zmerp zmerp commented Jun 28, 2025

In this PR i add a parameter to register_device to not wait for device activation; this is required for how the code is structured now. SteamVR wants us to do this asynchronously anyway but it was easier for me in the previous PR to force it back to be synchronous. Even though now the code could be racy, I've tested this PR and there seems to be no problem, even in the case of fastest client connection (when the client is already awake waiting and already trusted in the server).

@zmerp zmerp force-pushed the revert-deferred-hmd-init branch from 0e70789 to 1abde75 Compare June 28, 2025 16:41
@zmerp
Copy link
Member Author

zmerp commented Jun 28, 2025

Should be ready for review

@zmerp zmerp changed the title fix(server_openvr): ⏪ Revert HMD initialization at driver startup fix(server_openvr): ✨ Conditional HMD initialization strategy Jun 29, 2025
@zmerp zmerp mentioned this pull request Jun 29, 2025
@zmerp
Copy link
Member Author

zmerp commented Jun 29, 2025

Sorry, I ran cargo xtask format but not cargo clippy...

@zmerp zmerp merged commit 3bf9c8c into master Jun 29, 2025
9 checks passed
@zmerp zmerp deleted the revert-deferred-hmd-init branch June 29, 2025 16:22
zmerp added a commit that referenced this pull request Jun 29, 2025
* fix(server_openvr): ⏪ Revert HMD initialization at driver startup

* Initialize HMD early only when dashboard is alive

* Address review comments
zmerp added a commit that referenced this pull request Jun 30, 2025
* fix(server_openvr): ⏪ Revert HMD initialization at driver startup

* Initialize HMD early only when dashboard is alive

* Address review 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.

3 participants