v0.1.2: FSR 4 Ultra Performance, AMD card warning, mod submissions #15

Manually merged
github merged 21 commits from gh-pr/15/head into gh-pr/15/base 2026-12-01 21:29:42 +00:00
Owner

@⁠Zetsukae on GitHub · 2026-12-01 21:25 UTC · original
Zetsukae:development → main · +2089 −104 · 26 files · 21 commits · merged 2026-12-01 21:25 UTC

Everything on development since v0.1.1, for the v0.1.2 release.

Players see

  • FSR 4 Ultra Performance in the launcher (renders 1280×720 for 4K): 23.4 → 26.8 fps standing against FSR Performance on an RX 9060 XT (+14%), worst 5-second average 17.9 → 26.1 fps.
  • A warning before launching on a graphics card that is not AMD's, with "Don't show this again".
  • Mods → Submit my mod: opens CONTRIBUTING.md's new mod section; mods are submitted as pull requests to the new mods branch.

Under the hood (measurement switches, all off by default)

  • Rewrite M0/M1/M1b spikes (VICTORY_POOL_HEAP): the page pool as card heaps is not viable on 32 GB.
  • VICTORY_BACK_READS, VICTORY_LAND_DROP, VICTORY_PRELUDE_SKIP, VICTORY_RDNA_FLOAT=31: bounds that ruled out copy-back, uploads and shader translation as the frame's limit. The card is the limit (98% busy).
  • shaderdump example to study a translation.

Notes: notes/Debug switches.md.

🤖 Generated with Claude Code

**@⁠Zetsukae** on GitHub · 2026-12-01 21:25 UTC · [original](https://github.com/Zetsukae/Northstar-AMD/pull/15) `Zetsukae:development` → `main` · +2089 −104 · 26 files · 21 commits · merged 2026-12-01 21:25 UTC Everything on `development` since v0.1.1, for the v0.1.2 release. ## Players see - **FSR 4 Ultra Performance** in the launcher (renders 1280×720 for 4K): 23.4 → 26.8 fps standing against FSR Performance on an RX 9060 XT (+14%), worst 5-second average 17.9 → 26.1 fps. - **A warning before launching on a graphics card that is not AMD's**, with "Don't show this again". - **Mods → Submit my mod**: opens CONTRIBUTING.md's new mod section; mods are submitted as pull requests to the new `mods` branch. ## Under the hood (measurement switches, all off by default) - Rewrite M0/M1/M1b spikes (`VICTORY_POOL_HEAP`): the page pool as card heaps is not viable on 32 GB. - `VICTORY_BACK_READS`, `VICTORY_LAND_DROP`, `VICTORY_PRELUDE_SKIP`, `VICTORY_RDNA_FLOAT=31`: bounds that ruled out copy-back, uploads and shader translation as the frame's limit. The card is the limit (98% busy). - `shaderdump` example to study a translation. Notes: `notes/Debug switches.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The rewrite keeps the loader, the formats, the translator and the
launcher, and replaces how the title's GPU memory reaches the card: the
page pool as one committed section opened as a heap, shaders reading and
writing title addresses through a page table, fixed-function inputs
gathered on the card, textures still host copies. Milestones start with
spikes on our own test data (section heap, translated accesses, gathers,
commit charge and bandwidth). VICTORY_COPY_WHOLE=1 copies every refreshed
range whole (about 1 fps with the light refresh off): a test switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A committed section stands for the page pool; single 64 KiB views of its
pages are mapped in a scattered order at consecutive addresses, as the
title maps physical pages. Opened as one heap with one buffer over it, a
compute shader reads every word of the title's range through a page table
and writes it back changed: the card reads all the CPU wrote through the
views, and the CPU reads through the views all the card wrote. Passes on
the software adapter and on the owner's card with the debug layer on.
Ignored by default (run it by name with --ignored). notes/Rewrite.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The translator already reads title memory by address through a page
directory (lower.rs memory(): 64 KiB page -> copy and offset), used only
by the ray-tracing programs and never run on a card before. With every
entry naming one view over a pool heap (a committed section opened as a
heap), each page at a scattered place, the node test lowered without the
tests' stand-in matches the CPU reference on the owner's card and on
WARP, its data over two pages; with the directory naming the wrong pages
23 threads differ. The test harness gets root views at an address of the
test's own buffer and raw views over a buffer it made. Ignored by default
(run it by name with --ignored). notes/Rewrite.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
What fixed-function hardware reads must be one run of memory; the
title's pages behind it are scattered in the pool. The card gathers them
itself, one copy per run of a page from the buffer over the pool heap: an
index buffer over three scattered pages arrives whole, dispatch arguments
over two pages drive an indirect dispatch of the groups they say, and
4 MiB over 64 pages gathers in 0.17 ms on the owner's card. Debug layer
on, no message. Ignored by default (run it by name with --ignored).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Committing the title's 6.1 GiB pool whole works at once on the owner's
PC (commit 18.0 -> 24.2 of 72.8 GB). One heap opens at most 4095 MB, so
the pool is two sections (the directory already names each page's view).
Opening a section as a heap makes all of it resident (working set
41 -> 4,137 MB for a 4095 MB section): the pool would be held in RAM for
the run. The card reads it at ~42 GiB/s against ~260 from its own memory.
notes/Rewrite.md gives the M0 verdict and the next step: run the game on
a committed, opened pool with the old layer still working, to measure
the RAM and commit in play.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With the switch, xmem makes the title's physical page pool committed
sections of 4095 MB at most (each page already records its section, and
mappings are grouped by section), and the GPU side opens each as a heap
with a buffer over it and holds it; the old layer still does the work.
Off by default. In play (runs poolHeapA/poolHeapB): four sections (710,
185, 4,095, 2,141 MB) opened in 0.05-0.57 s each and the working set went
0.7 -> 9.0 GB at once; when the world loaded a list failed with
E_OUTOFMEMORY. Pinning the whole pool does not fit on a 32 GB PC beside
today's copies; notes/Rewrite.md has the next step (pin only the sections
the card reads).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
With VICTORY_POOL_HEAP=2 the page pool is cut into sections of
VICTORY_POOL_SECTION_MB (256 unless set), each opened as a heap when the
old layer first makes a host copy over one of its pages. In play all 29
sections (7.1 GB) opened within ~15 s of the world loading: the card
reads pages in every part of the pool, and the run ran out of memory as
with the whole pool. notes/Rewrite.md: the pool cannot be the memory
model on a 32 GB PC; the switches stay, off, for a PC with more memory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Measured standing: of ~10.7 MB a frame the copy-back writes, the title's
code touches ~0.04 MB; ~2.2 MB is copied back again first, the rest is
never touched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Upscaler: ultra-performance (1280x720 inside 4K; +14% standing on the
  RX 9060 XT against Performance).
- Before Play, if the card the game will run on is not AMD's (DXGI's
  high-performance adapter on Windows, /sys/class/drm on Linux): a dialog
  saying Northstar is optimized and tested on AMD cards only, with Don't
  show this again (saved as gpuWarningDismissed), Cancel and Launch anyway.
- Mods: a Submit my mod button opening CONTRIBUTING.md's new Submitting a
  mod section.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 21:29:39 +00:00
github manually merged commit 3011a90431 into gh-pr/15/base 2026-12-01 21:29:42 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.