Skip to content

Rexglue v0.10.0 - #8

Merged
cookingwithsimon merged 9 commits into
cookingwithsimon:mainfrom
Kurtisone:rexglue-v0.10.0
Nov 18, 2026
Merged

cookingwithsimon merged 9 commits into
cookingwithsimon:mainfrom
Kurtisone:rexglue-v0.10.0

Conversation

@Kurtisone

@Kurtisone Kurtisone commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Move to rexglue-sdk v0.10.0

This moves the SDK from the rexglue-skate3 fork (v0.8.0-based, 7eb0faf) to
rexglue-sdk v0.10.0, keeping everything the fork and this port add.

What changed

SDK submodule — now Kurtisone/rexglue-skate3, branch skate1-v0.10.0:

  1. The fork's 102 commits, re-parented onto upstream e8ce24f (v0.8.0+4, the
    commit the fork was imported from; trees are identical, so the fork's
    history and authorship are kept).
  2. A merge of upstream v0.10.0. Where both sides did the same work (the
    macOS port, SDL input/windowing), upstream's version was taken and the
    fork's duplicate dropped; fork features were carried onto the new APIs:
    • input: overlay pad state (GetDeviceStateUi), menu chord, guest input
      gating while overlays are open, rumble filtering and SDL rumble pulses
    • UI: FPS counter, build title/stamp, F4 developer-overlay gate,
      forced-exit watchdog, display refresh query, Win32 timer/MMCSS setup
    • graphics: gpu_backend selection with fallback, now through the
      runtime-loaded rexgpu-xenos plugin; the nrhi shader cache directory is
      set inside the plugin
    • codegen: symbol prefix, chunk-aware block discovery, the vaddsws and
      float16_4 pack fixes
    • core/system: W^X guest pages, SIGBUS handling and signal chaining, the
      low null-offset page, physical invalidation diagnostics, clock fix
  3. patches/rexglue-sdk.patch as a commit (vpkuwus/vpkuhus aliasing — still
    present in v0.10.0 —, readback_resolve_force_length, guest backtrace,
    stock imgui). Its shared-memory and Win32 Alt-key fixes are dropped:
    v0.10.0 fixes the first itself and no longer has a Win32 window.
  4. Codegen speed: the fork's chunk handling copied the jump list of every
    pending function on every added function, and the whole known-function
    set for every discovered function; with upstream's quadratic
    cleanupAbsorbedGapFills, Skate 1 codegen took 33 minutes. Now 2 minutes
    (Discover 8 min -> 21 s, GapFill 23 min -> 1 s), output identical file for
    file.
  5. Fixes found running the game on Linux / Steam Deck: RenderDoc is only used
    when attached (SteamOS 3.9 ships librenderdoc, and its capture overlay
    showed over the game); guest input is gated only while an interactive
    overlay is open (the FPS counter and v0.10's achievement toast are
    permanent dialogs); Steam Input's virtual pad hides the Valve hardware it
    stands for.
  6. imgui pinned to upstream's v1.92.5 (the fork's pin cdda623 cannot be
    fetched from ocornut/imgui).

This repo

  • rexglue_setup_target(skate1 GPU_PLUGINS xenos): 0.10 moved the Xenos GPU
    emulation into a runtime-loaded plugin, staged next to the exe.
  • config/skate1.runtime.toml: FPS counter off by default (as in 0.2.0); a
    "Quit the game?" dialog on Escape or RB+Start (Skate has no quit option);
    gpu_plugin = 'xenos' (without it the game
    starts with no GPU); the right stick stays on the mouse and the binds whose
    SDK defaults moved in 0.10 are pinned (triggers, shoulders, back, R3).
  • Linux presets build with -march=x86-64-v2, like the SDK's presets.
  • README: no patch step and no manual imgui checkout; tool names
    (rexgluerd, out/mac-arm64).
  • patches/rexglue-sdk.patch removed.

Behaviour changes to know about

  • 0.10 replaced the Win32 and GTK windows with SDL on every platform.
  • On Linux the fork's gtk_ui_scale (1.25) is gone with the GTK window, so
    the settings UI may look smaller there.
  • Config files: cache_path is now cache_root upstream; the old key is
    still read.

Testing

  • Linux, Arch (clang 23): SDK, tool, rexgpu-xenos plugin and unit
    tests build; the plugin links with no unresolved symbols. 208/213 unit
    tests pass; the 5 failures (4 chrono NT-epoch cases on libstdc++, 1
    depfile escape test) are in code identical to v0.10.0.
  • Linux, Ubuntu 22.04 container (clang 20, as in the SDK's CI): SDK, tool
    and plugin build; binaries need at most GLIBC 2.35 / GLIBCXX 3.4.32.
  • Codegen of Skate 1's default.xex and a native Linux build of skate1
    (Ubuntu 22.04 container). Boot smoke test: Vulkan backend comes up
    through the plugin, the XEX loads and the game runs without errors.
  • Play test on Linux (title, profile creation, menus, career start,
    Skate Libre) and on a Steam Deck (native build, controller)
  • Audio on Linux
  • Photos
  • Windows build
  • macOS build
  • PPC instruction tests (need the Xenon binutils)

Opened as a draft until the play test is done.

Kurtisone and others added 8 commits October 24, 2026 12:01
The SDK submodule now points at rexglue-sdk v0.10.0 with the
rexglue-skate3 fork merged on top and patches/rexglue-sdk.patch folded in
as commits, so the patch step is gone.

- CMake: stage the rexgpu-xenos GPU plugin (GPU_PLUGINS xenos); Linux
  presets build with -march=x86-64-v2 like the SDK's own presets.
- Runtime config: select the plugin with gpu_plugin = 'xenos'; keep the
  right stick on the mouse and pin the keyboard binds whose SDK defaults
  moved in 0.10 (triggers, shoulders, back, right-stick press).
- README: SDK description, tool names (rexgluerd, out/mac-arm64), no
  patch or imgui checkout steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The skate1-v0.10.0 branch lives in Kurtisone/rexglue-skate3; the
mchughalex fork does not have these commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SDK now resolves GapFill's pending jumps in one pass; with the fork's
per-add jump-list copies, codegen spent over 30 minutes in GapFill on
Skate 1. Codegen output is unchanged. The manifest carries the
sdk_version stamp codegen writes for 0.10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three more codegen hot spots fixed in the SDK (the previous SDK bump only
removed part of the GapFill cost): the per-function copy of the
known-function set in Discover, GapFill's per-add notification pass, and
the quadratic cleanupAbsorbedGapFills. Measured on Linux: Discover
8 min -> 21 s, GapFill 23 min -> 1 s; codegen output is identical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… off by default

The SDK now hides the Valve hardware Steam Input already virtualizes (a
Steam Deck showed up as two players and every press acted twice) and only
gates guest input while an interactive overlay is open. The FPS counter is
off by default again, as in the 0.2.0 release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SteamOS 3.9 ships librenderdoc, which the SDK loaded on every launch, so
RenderDoc's capture overlay showed over the game.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skate has no quit option of its own. The SDK's optional quit dialog is
enabled in the runtime config, opened with Escape or the RB+Start chord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A crash or kill left the 4.5 GB guest memory file in /dev/shm until reboot;
once tmpfs filled up the next launch stalled on a black screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copy link
Copy Markdown
Owner

Hey Kurtisone, I had a look through Skate1Native and it's seriously impressive work. The native D3D renderer, 60 FPS on the Deck, and an Android build running on the Odin 2 are all way beyond where I expected anyone to take this. Thanks for crediting Skate1Recompiled too.

A couple of things:

  1. License: Skate1Recompiled never had a license file, which I've now fixed. It's going GPL-3.0 (PR Add GPL-3.0 license #9), so it matches Skate1Native and code can move freely in both directions.

  2. PR Rexglue v0.10.0 #8 (SDK v0.10.0): I'm going to test it on Windows and then merge it. I'll probably move the SDK fork under cookingwithsimon so the submodule doesn't depend on a personal branch. Hope that's OK.

  3. Working together: would you be up for bringing the native renderer into Skate1Recompiled behind a build option (off by default at first, like SKATE1_NATIVE_GPU already is)? Then there's one main repo for Windows, Linux, Deck, Mac and Android instead of two that drift apart. Your RB+Start menu, the intro skip, the frame cap and the camera-based ultrawide would be great to have too. We've got similar QoL hooks half done, and yours look cleaner. Happy to give you collaborator access if that's easier than PRs.

If you'd rather keep Skate1Native as its own project, that's totally fine too. In that case I'd like to point Deck and Android players your way from my README, and we can keep sharing fixes back and forth.

Let me know what you think!

Simon


Generated by Claude Code

@Kurtisone

Copy link
Copy Markdown
Contributor Author

Hi Simon, thanks a lot for the kind words, and for the license fix.

  1. License: GPL-3.0 is perfect, and it's good that both repos match.

  2. PR Rexglue v0.10.0 #8: Moving the SDK fork under your account is fine by me. Just tell me when you do it, so I can update my branches. The skate1-v0.10.0 branch has the 102 fork commits re-parented onto upstream, so you can push it as is and keep the history. Thanks for testing on Windows. That is the part I couldn't check (Windows and macOS builds are unchecked in the PR), so please tell me if anything breaks.

  3. Working together: I'm up for it. One repo for every platform makes more sense than two that drift apart. My suggestion:

    • I start with PRs rather than collaborator access, so you can review each piece.
    • I bring the native renderer in behind a build option, off by default like SKATE1_NATIVE_GPU. I'd do it in small steps, so each PR stays reviewable and doesn't touch the existing Vulkan path.
    • The QoL parts (RB+Start menu, intro skip, frame cap, camera-based ultrawide) can go in separate PRs. If some of your hooks already cover the same thing, tell me which ones, and I'll adapt mine to avoid duplicates.
    • The Android build can come after the Linux/Deck one.

Could you tell me which branch you want the PRs against, and whether you want the native renderer in its own directory? Once PR #8 is merged I can start from there.

Thanks again!

@cookingwithsimon

Copy link
Copy Markdown
Owner

Thanks, that plan sounds great. PRs against main please, and yes, a separate directory for the native renderer (something like src/native_gpu/) so it stays clear of the SDK path. Our QoL hooks (intro skip, FOV/camera, ultrawide) were never tested, so go ahead with yours and we’ll drop ours where they overlap. One thing I hit testing #8: on a fresh clone, README step 2 fails because CMakeLists includes generated/rexglue.cmake before codegen has run. Could the include be skipped when that file is missing? I’ll post Windows results and let you know when the SDK fork has moved.

Tested #8 on Windows (RTX 4070, D3D12): it builds and is stable, but in game it runs at ~30 FPS (≈34 ms/frame, only ~3 ms waiting on vsync), where v0.2.1 holds a steady 60 on the same PC and game files. Vsync off, max frame latency 2 and Vulkan don’t fix it. Build is RelWithDebInfo with perf counters and Tracy off. Also seeing a few XmaContext “input offset 16416 exceeds buffer size 16384” errors. Do you see 60 on the Deck with the 0.10 SDK? I’ll grab a CPU profile of both builds to narrow it down.

On a fresh clone generated/rexglue.cmake doesn't exist, so the README's configure step failed. Without it, add only the SDK (so the rexglue tool can be built) and stop; reconfigure after codegen.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Kurtisone

Copy link
Copy Markdown
Contributor Author

Thanks Simon, that all works for me: PRs against main, and the native renderer in src/native_gpu/. I'll start once #8 is merged, and I'll put my QoL hooks in separate PRs, dropping mine where yours already cover the same thing.

CMake include: fixed and pushed to this PR (488f0b2). When generated/rexglue.cmake is missing, CMake now configures only the SDK, so the rexglue target can be built; reconfigure after codegen as in the README. I checked that a fresh configure succeeds and exposes the rexglue target; I haven't tried the full flow on Windows.

30 FPS on Windows: I haven't compared 0.10 and 0.2.1 on the same PC. I do get 60 FPS on the Steam Deck, and also on the Odin 2 Portal (Android), but with the native renderer from Skate1Native, not the Vulkan path in this PR, so it doesn't answer your question directly. Your CPU profile of both builds should show where the time goes. If it's in the GPU command thread, tell me which functions and I'll look at what the SDK merge changed there.

XmaContext errors: I haven't seen those yet. I'll check whether they also show up on Linux with this branch.

Thanks for testing, and let me know when the SDK fork has moved.

@cookingwithsimon
cookingwithsimon merged commit d6b5bf5 into cookingwithsimon:main Nov 18, 2026
1 check failed
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