No description
  • Rust 68.2%
  • C++ 29.6%
  • WGSL 0.9%
  • HLSL 0.5%
  • C 0.4%
  • Other 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fifthdread 4b67aa04a1 Linux: fix head-tracking desync on stripped vrcompositor
SteamVR 2.17.6+ ships a stripped vrcompositor, so the Vulkan layer's render-thread symbol match in find_pose_in_call_stack() never fires and every frame gets tagged through the CEncoder zero-pose fallback (GetLatestPose()). That pose is the newest client pose at present time, a pipeline-latency-shifted label, so the client reprojects from a wrong source and the world trails head motion while moving.

Walk every stack frame instead, bounded by the next frame's SP, and keep the candidate whose rotation is closest to the pose returned last time. check_pose() still gates candidates. With the scan hitting again the layer ships a real pose and the server takes the non-zero GetBestPoseMatch() branch.

Also carries the 20.14.1 port (audio pipewire API, nvcc compute_75, session build script) and the nvidia SIGSEGV/SIGABRT handler.
2026-09-23 11:52:24 -04:00
.cargo Allow using system-wide target dir 2022-06-17 11:41:41 +02:00
.github fix(ci): 💚 Fix CI release workflow 2025-07-15 03:18:07 +10:00
alvr Linux: fix head-tracking desync on stripped vrcompositor 2026-09-23 11:52:24 -04:00
openvr@4c85abcb7f chore: get openvr as git submodule (#2148) 2024-05-27 00:18:46 +02:00
resources chore: Add composited background resource (#2561) 2025-01-15 18:14:37 +01:00
wiki fix(dashboard): 🐛 Remove devices from Headset speaker dropdown (#2918) 2025-07-15 03:18:07 +10:00
.clang-format chore: add formatting style for c++ 2024-07-02 18:57:21 +02:00
.editorconfig chore: add formatting style for c++ 2024-07-02 18:57:21 +02:00
.gitattributes refactor(client_core): ♻️ Port FFE to Rust and remove all C++ code (#2523) 2025-01-15 18:14:36 +01:00
.gitignore chore(client): 🚀 Update manifest for AppLab (#2146) 2024-05-26 23:38:06 +02:00
.gitmodules chore: get openvr as git submodule (#2148) 2024-05-27 00:18:46 +02:00
about.toml fix: 📄 Update license allowlist (#2731) 2025-03-11 15:08:36 +01:00
Cargo.lock Linux: fix head-tracking desync on stripped vrcompositor 2026-09-23 11:52:24 -04:00
Cargo.toml Bump to 20.14.1 2025-07-15 03:18:07 +10:00
CHANGELOG.md docs: 📝 Add changelog entries 2024-09-21 09:19:20 +02:00
CONTRIBUTING.md Add CONTRIBUTING.md with styling rules 2022-09-27 21:14:55 +02:00
LICENSE docs: 📄 Update licenses 2024-01-29 15:49:39 +08:00
nvidia-crash-fix.patch Linux: fix head-tracking desync on stripped vrcompositor 2026-09-23 11:52:24 -04:00
README.md Linux: fix head-tracking desync on stripped vrcompositor 2026-09-23 11:52:24 -04:00

ALVR_Fixed

A patched build of ALVR that fixes head-tracking stutter on Linux. Streams VR from your PC to a Meta Quest 3 over Wi-Fi.

Stock ALVR streams fine on Linux until you move your head. Then the picture trails behind you and snaps back. This build fixes that.

What's fixed

Head tracking no longer trails and snaps back. ALVR has to label every frame with where your head was when that frame was drawn. SteamVR's display program on Linux has its insides stripped out, and ALVR needs to read one value from it to do that. When that read comes up empty, ALVR falls back to a rough guess, and the guess is always a touch ahead of the frame. That's the trail and the snap. This build reads the value a different way, so it lands on the frame it belongs to. Works at any quality setting now.

No more "key component isn't working". ALVR has to move SteamVR's display program aside and put its own in. It used to rename the original, and Linux only keeps the first 15 letters of a program's name. So the renamed one became vrcompositor.re, SteamVR didn't recognize it, and the display never started. No display, no controllers. Now the original goes in a subfolder instead. The name stays vrcompositor. 13 letters, fits fine.

No more runaway latency. The view used to swing between smooth and wildly late, over and over. When ALVR can't tell which moment a frame belongs to, it now uses the newest one instead of guessing.

No more "safe mode". After enough crashes SteamVR would refuse to load ALVR's driver at all, and nothing worked. Restarting the ALVR dashboard re-registers it.

What's still open

The NVIDIA driver itself sometimes falls over inside SteamVR's display program (driver 615.71.09, RTX 5090). Not fixed. There's a catcher in place that prints where it died, so if it comes back we know what to patch.

Using it

  1. Launch the dashboard: bin/alvr_dashboard
  2. Click Launch SteamVR in the dashboard.
  3. Put on the Quest, connect, and play.

That's it. The dashboard registers ALVR with SteamVR on launch, and clears safe mode if it ever latches.

Requirements

  • Linux (tested on CachyOS, kernel 6.x)
  • SteamVR 2.17.10
  • NVIDIA RTX 5090 on driver 615.71.09 (the 5090 needs a newer build setting than stock ALVR ships)
  • Meta Quest 3

Building it

cargo xtask build-streamer --release

Everything lands in build/alvr_streamer_linux/. The dashboard is bin/alvr_dashboard.

The details

The technical write-up lives in CONTEXT.md - every issue, the root cause, and the exact change for each one. If you're here to fix something, start there.

Credit

All of this is ALVR, made by the ALVR team. This is a fork carrying the Linux fixes above.