Add VR/XR support with OpenXR abstraction and multi-platform rendering#60
Merged
infinityabundance merged 4 commits intomainfrom Feb 13, 2026
Merged
Conversation
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add VR/XR support for virtual reality streaming
Add VR/XR support with OpenXR abstraction and multi-platform rendering
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements comprehensive VR/XR infrastructure for immersive game streaming across Meta Quest, SteamVR, and Apple Vision Pro platforms. Provides stereoscopic rendering, 6-DOF tracking, spatial audio, and VR-optimized UI with performance targeting 90+ FPS.
Details
What changed?
Core VR Stack (9 components, 4,000+ LOC):
openxr_manager- Session/swapchain management, view/projection matrices, tracking data retrievalstereoscopic_renderer- Dual viewport rendering, 40×40 distortion mesh generation, barrel/pincushion correctionhead_tracker- 6-DOF pose tracking with velocity-based prediction (16-20ms ahead), 120-frame history bufferhand_tracker- 25-joint finger tracking, 8-gesture recognition (fist, pointing, pinch, etc.)vr_input_system- Controller mapping (buttons/analog), haptic feedback APIspatial_audio- 3D positional audio (64 sources), HRTF processing, distance attenuationvr_ui_framework- World-space UI panels (32 max), ray casting, teleportation (3 locomotion modes)vr_profiler- Real-time FPS/latency metrics, adaptive quality recommendationsvr_manager- Centralized coordinator orchestrating frame rendering and inputPlatform Implementations:
Build Integration:
BUILD_VR_SUPPORT=ONUsage:
Rationale
VR gaming demands <20ms motion-to-photon latency and consistent 90+ FPS. RootStream's zero-compositor direct KMS capture and hardware-accelerated encoding provide the foundation for low-latency VR streaming. This implementation:
Aligns with RootStream's Linux-native ethos: direct hardware access (no compositor), minimal dependencies (libm only), kernel-adjacent performance (VA-API/NVENC integration ready).
Testing
cmake -DBUILD_VR_SUPPORT=ON && make./test_vr(10 suites, 0 failures)Test Coverage:
Notes
Original prompt
PHASE 23: VR/XR Support - Virtual Reality Streaming Integration
🎯 Objective
Implement comprehensive VR/XR support for RootStream that enables:
This expands RootStream to support immersive VR gaming experiences across multiple headset platforms.
📋 Architecture Overview
🔨 Implementation Plan
1. OpenXR Abstraction Layer
File:
src/vr/openxr_manager.h/cpp