Skip to content

Steam Frame beta: device fixes, 120 Hz pacing, README and release - #2

Merged
mitch030504 merged 10 commits into
openxr-workfrom
claude/peaceful-keller-2ek99b
Oct 5, 2026
Merged

mitch030504 merged 10 commits into
openxr-workfrom
claude/peaceful-keller-2ek99b

Conversation

@mitch030504

Copy link
Copy Markdown
Owner

Summary

Follow-up to #1 after the first runs on a real Steam Frame. The native SteamOS build now plays in VR at 2160x2160 per eye, at 120 Hz, with every game frame shown. This PR carries the fixes found on the device, the docs for a beta, and a source-only release workflow.

Fixes from device testing

  • Crash on race restart (aurora-main/patches/dawn/aurora_fdm.inc). The game crashed inside Turnip while Dawn recorded an eye render pass.
    • Turnip reads a fragment density map through a host mapping of its memory, taken at bind time.
    • The maps were sub-allocated from blocks that Dawn's buffer-upload fast path maps and unmaps. An unmap there pulled the mapping out from under a map sharing the block.
    • Each map now gets a dedicated allocation. This changes the Dawn patch, so Dawn needs rebuilding.
  • SteamVR halving the app's rate (openxr_integration.cpp, openxr_runtime.*, runtime_config.h, settings panel).
    • Render-first pacing submitted only when a game frame was sealed, so SteamVR ran the app at 60 Hz on a 120 Hz display and filled every other refresh itself, even with Motion Smoothing off.
    • New [vr] repeat_frames, on by default for the Frame and off elsewhere, live in the panel. It resubmits the retained layer with its rendered poses on each refresh the new eyes miss.
    • The pacing thread waits for the eyes until 1.5 ms before the runtime's next wake: one period after the last xrWaitFrame returned, which OpenXRRuntime now records.
    • On the device: predicted-rate=120.0Hz, new=60 repeat=60, late=0.
  • Native crash diagnostics on Linux (runtime/src/main.cpp). With glibc the SIGSEGV/SIGBUS handler now logs the faulting thread, its pc and lr, and a backtrace, each as module + offset for addr2line. This is what located the Turnip crash.
  • Eye-tracked foveation tuning (aurora-main/lib/gfx/foveation.hpp, aurora.cpp). Gaze-centred maps widen both rings by 8°, and each eye keeps 128 maps instead of 32. The fixed (forward) maps are unchanged.
  • Dawn provider message (AuroraDawnProvider.cmake). It now says when --dawn-package replaces the download, instead of printing the URL it doesn't fetch.

Docs and release

  • README: the beta status, what works, recommended settings (render_scale = 1.25 is the panels' native resolution, since 1.0 is SteamVR's recommended 1728), known issues, Frame Control install, and reporting.
  • docs/steam-frame.md:
    • building with Docker on another machine, including registering qemu with the POCF flags on hosts whose binfmt_misc is per container (Unraid);
    • installing and updating with Frame Control;
    • crash logs, a settings table and the known issues.
  • .github/workflows/frame-release.yml: a frame-* tag publishes a source-only pre-release with the notes in docs/releases/<tag>.md. v* tags stay with package.yml.

Known issues (not fixed here)

  • Images double in races and on the HUD, at first in the right eye only. Foveation on Turnip is the main suspect; the next step is to compare off / on without tracking / on with tracking.
  • Foveation follows the right eye less well than the left.

Testing

  • Host tests pass in both Frame and non-Frame modes:
    • vr_config_tests (including the new repeat_frames cases);
    • vr_eye_gaze_tests, vr_wii_remote_tests and frame_interpolation_pacing_tests;
    • foveation_test, with the centroid case moved to a gaze whose widened region stays inside the eye.
  • Host syntax checks pass for main.cpp, openxr_integration.cpp, openxr_runtime.cpp and settings_overlay.cpp.
  • On a Steam Frame: no crash through repeated race restarts, and 120 Hz pacing with 60 new frames a second at render_scale = 1.25.

🤖 Generated with Claude Code

https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3


Generated by Claude Code

claude added 9 commits October 4, 2026 10:31
The README now introduces this repository as the Steam Frame fork of
WiiCompiled OpenXR VR: what the fork adds, its untested status, the
requirements and build steps, where to report problems, and what it keeps
from upstream. docs/steam-frame.md gains the emulated ARM64 container route
for building on an x86_64 Linux PC, disc extraction with nodtool and the
copy to the Frame, and clones the default branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
…inux

A SIGSEGV on the Steam Frame logged only the guest state and 'Host stack
trace unavailable on this platform'. With glibc the handler now names the
faulting thread, its pc and lr, and a backtrace, each as module + offset for
addr2line. The Dawn provider also says when a local package (--dawn-package)
replaces the download instead of printing the URL it does not fetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
On the Steam Frame the game crashed in Turnip while Dawn recorded an eye
render pass, reading an unmapped address. Turnip reads a density map through
a host mapping of its memory taken at bind time, and the maps were
sub-allocated from blocks that Dawn's buffer upload fast path maps and
unmaps. A dedicated allocation is never mapped or unmapped by Dawn.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
On the Steam Frame the full-density region was too small and lagged the
eyes. Gaze-centred maps now widen both of the level's rings by 8 degrees,
covering a saccade until the next frame's map is bound, the tracker's error
and Turnip's per-bin density, and each eye keeps 128 maps instead of 32 so
fewer glances wait for an upload. The fixed, forward maps are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
SteamVR on the Steam Frame ran the game at half the 120 Hz display rate,
since render-first pacing submits only when a game frame is sealed, and
filled every other refresh itself even with Motion Smoothing off, which
doubled the HUD and the menu screen while the head turned. With the new
[vr] repeat_frames (default on for the Frame, off elsewhere, live), the
pacing thread waits a millisecond for the eyes and otherwise spends the
refresh on a keep-alive cycle that resubmits the retained layer with its
rendered poses, paced by xrWaitFrame.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
The first repeat_frames waited a millisecond for the eyes before spending a
refresh on the retained layer, so nearly every packet also cost a needless
repeat, the next packet missed the game's next frame, and the Steam Frame
showed about 35 new frames a second. The pacing thread now waits until
1.5 ms before the next wake, a period after the last xrWaitFrame returned,
which OpenXRRuntime records.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
The README and docs/steam-frame.md now describe the Frame build as a beta
that runs on the headset: what works, the recommended settings (render_scale
1.25 is the panels' native 2160x2160), the known issues (doubled images,
right-eye foveation), building with Docker on another machine (including
registering qemu on hosts whose binfmt_misc is per container), and
installing with Frame Control. A frame-* tag now publishes a source-only
pre-release with the notes in docs/releases/<tag>.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
Tags cannot always be pushed from where a release is prepared. Run from the
Actions tab, the workflow creates the tag on the run's commit through
gh release create --target instead of requiring a pushed tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
The checkbox is drawn on every platform, but its variable was declared
only under MKW_VR_STANDALONE, so the Windows runtime failed to compile
(settings_overlay.cpp: use of undeclared identifier 'g_vrRepeatFrames').

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3

Copy link
Copy Markdown
Owner Author

CI: Recompilation test / Windows runtime (synthetic DOL) fails at the link. The cause predates this PR.

The compile error from the first run (g_vrRepeatFrames declared only for standalone builds) was this PR's own bug, and d119b42 fixes it. The run on d119b42 now compiles everything and stops at the final link:

ld.lld: error: undefined symbol: func_801284B4
>>> referenced by unity_runtime_2_cxx.cxx.obj:(AXFXReverbHiExpCallback_801284b4)

Why this isn't this PR's:

  • runtime/src/hle/audio/ax_effects.cpp calls the guest function func_801284B4 directly. That call came in with upstream commit e7b670b ("Added Vulkan PC OpenXR Support"), which openxr-work already contains, and this PR doesn't touch the file.
  • The synthetic DOL test stands in for every guest function the runtime calls directly, from an explicit list in Launcher/Test-Recompilation.ps1, and 0x801284B4 was never added to it.
  • This workflow had never run on the fork before this PR, so openxr-work fails the same way unnoticed. The earlier compile error simply stopped the job before it reached the link.

No fix exists upstream as far as this repository shows. The proposed patch adds the symbol to the list; it must come first, since the list is in ascending order and the last entry sizes the text section:

 [uint32[]]$guestCallbacks = @(
-    0x8012B830L, 0x801A0620L, 0x801A1ED8L, 0x801A961CL,
+    0x801284B4L, 0x8012B830L, 0x801A0620L, 0x801A1ED8L, 0x801A961CL,
     0x801AADE0L, 0x801D8D30L, 0x801D9E94L, 0x8055531CL,
     0x8056A470L, 0x8056A580L, 0x805A6C58L
 )

Generated by Claude Code

ax_effects.cpp calls the guest function func_801284B4 directly, since
upstream commit e7b670b, but the synthetic DOL test never generated a
stand-in for it, so its Windows runtime link failed with an undefined
symbol. This was hidden on openxr-work, where the workflow had not run.
The list now covers every guest function the runtime calls directly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019HBRGKTE1GnN2ah8gcZKr3
@mitch030504
mitch030504 merged commit 26c8305 into openxr-work Oct 5, 2026
2 checks passed
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