Frame generation, lower RAM use, release build by default #1

Manually merged
github merged 14 commits from gh-pr/1/head into gh-pr/1/base 2026-12-01 20:41:26 +00:00
Owner

@⁠Zetsukae on GitHub · 2026-11-30 20:18 UTC · original
Zetsukae:development → main · +1563 −69 · 20 files · 14 commits · merged 2026-11-30 20:18 UTC

What changes for players

  • AMD frame generation (launcher: Graphics → Frame generation, off by default). Shows a frame made between each two the game renders, on top of FSR 4. Uses AMD's ML generator; the HUD stays sharp (it is kept as drawn, not blended between frames). Needs amd_fidelityfx_framegeneration_dx12.dll (FidelityFX SDK v2.4.0, signed by AMD) beside the FSR DLL in %LOCALAPPDATA%\victory\fidelityfx. The F1 counter shows total FPS, native FPS (*) and ms.
  • Less RAM held, less stutter: GPU list preludes come from a shared pool (~3.3 GB more free RAM in a 4-minute run); windows of game memory for open-ended reads start where the reads start (~0.8 GB less held in RAM).
  • Faster by default: the launcher runs the release build (~10% faster); the diagnostics build only with "Crash diagnostics".

For contributors

  • CONTRIBUTING.md: base work on development and open pull requests against it.
  • Diagnostics: VICTORY_KEEP_AT/VICTORY_PASS_AT take several programs; VICTORY_FRAMEGEN_ONLY_MADE, VICTORY_FRAMEGEN_DEBUG; a GPU probe test for page-by-page buffer backing.

Checked

  • Played by the owner with frame generation on (FSR 4 Performance, 4K): no black frames, HUD steady, motion smooth.
  • Memory changes A/B'd in the same standing scene (notes/Debug switches.md).
  • cargo test -p victory-shader: 306 pass; one test (the_record_count_of_a_structured_buffer_read_by_index) crashes the same way before these changes.

Known issues (in notes/)

  • Trees and props vanish during level-of-detail hand-overs (~20 m and ~10 m): parked, findings in notes/Distant trees and shadows.md.
  • Black sand, water at 1K/2K: parked as before.

🤖 Generated with Claude Code

**@⁠Zetsukae** on GitHub · 2026-11-30 20:18 UTC · [original](https://github.com/Zetsukae/Northstar-AMD/pull/1) `Zetsukae:development` → `main` · +1563 −69 · 20 files · 14 commits · merged 2026-11-30 20:18 UTC ## What changes for players - **AMD frame generation** (launcher: Graphics → Frame generation, off by default). Shows a frame made between each two the game renders, on top of FSR 4. Uses AMD's ML generator; the HUD stays sharp (it is kept as drawn, not blended between frames). Needs `amd_fidelityfx_framegeneration_dx12.dll` (FidelityFX SDK v2.4.0, signed by AMD) beside the FSR DLL in `%LOCALAPPDATA%\victory\fidelityfx`. The F1 counter shows total FPS, native FPS (*) and ms. - **Less RAM held, less stutter:** GPU list preludes come from a shared pool (~3.3 GB more free RAM in a 4-minute run); windows of game memory for open-ended reads start where the reads start (~0.8 GB less held in RAM). - **Faster by default:** the launcher runs the release build (~10% faster); the diagnostics build only with "Crash diagnostics". ## For contributors - `CONTRIBUTING.md`: base work on `development` and open pull requests against it. - Diagnostics: `VICTORY_KEEP_AT`/`VICTORY_PASS_AT` take several programs; `VICTORY_FRAMEGEN_ONLY_MADE`, `VICTORY_FRAMEGEN_DEBUG`; a GPU probe test for page-by-page buffer backing. ## Checked - Played by the owner with frame generation on (FSR 4 Performance, 4K): no black frames, HUD steady, motion smooth. - Memory changes A/B'd in the same standing scene (notes/Debug switches.md). - `cargo test -p victory-shader`: 306 pass; one test (`the_record_count_of_a_structured_buffer_read_by_index`) crashes the same way before these changes. ## Known issues (in notes/) - Trees and props vanish during level-of-detail hand-overs (~20 m and ~10 m): parked, findings in `notes/Distant trees and shadows.md`. - Black sand, water at 1K/2K: parked as before. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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]>
In the same scene the release build ran steady frames of 33-49 ms against
42-51 ms for the diagnostics build (about 10% faster). The launcher picked
the diagnostics build whenever it existed; now it picks release, and the
diagnostics build (device-removed tracing, F9 captures) only when "Crash
diagnostics" is on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each host list kept the prelude (an allocator and a list) it first needed
for as long as the list lived, though a prelude runs only while its list's
submission does; the driver backs each pair with memory of the PC. Now a
list takes one when a submission first needs it and gives it back when the
list is reset (every submission of it has run); up to 256 wait for the
next. The idea is the foxhound fork's (3d52ac8a9), written for this code.
In 230 s standing: 472 preludes made instead of 1,980, 3.1 GB less held in
RAM, 3.3 GB more free on the PC. VICTORY_PRELUDE_POOL=0: as before. The
memory line counts preludes made and reused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner's walks and captures: trees and props show at ~25, ~15 and ~5 m and
vanish at ~20 and ~10 m, the two LOD hand-overs; in a band the object is
not drawn at all (not in the depth), its shadow is. Ruled out: the culls'
occlusion tests, query results, copying small depth images back, the
impostor and foliage fade kills, stencil. Next: the LOD pick of the tree
cull. VICTORY_KEEP_AT / VICTORY_PASS_AT now take groups separated by `/`
(one per program length), for testing compares in several programs at
once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A buffer without memory of its own is given two 64 KiB tiles of a heap in
the PC's memory (custom, write-back, L0); the CPU writes them through a
buffer placed over the heap, the card reads them through the reserved
buffer, and the CPU sees what the card writes there. Passes on the
software adapter and on the owner's card with the debug layer on (tier 4,
no message). The ground for windows of title memory that take memory only
for the pages ever copied, one copy of each byte for every window over it.
Ignored by default (run it by name with --ignored; VICTORY_TILES_TEST_CARD=1
on the card).

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]>
A root view reads from its address to the end of its 4 MiB cell; its
window began at the cell's start, memory below the ask that nothing
read. In 230 s standing (runs winA/winC, 4 MiB grid): windows 3,952 ->
3,849 MB, private 29.7 -> 29.3 GB, held in RAM 22.6 -> 21.8 GB, frames
the same. VICTORY_WINDOW_TAILS=0: as before. The finer grid stays off
(with it the same memory lay in two windows, 1.6 GB).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AMD's DLL makes the swap chain for our window; at the title's upscaling
its depth and motion vectors are copied into textures of ours (five, in
turn), and at each present the generation's preparation is recorded on a
list of ours from the copy of the frame shown, then the generation is
configured and Present shows the made frame and ours. The analytical
generator (FSR 3.1.6) is asked for; the camera planes the title gives the
other way round are put in order. The idea of preparing at the present
from copies is the eikkapine/victory-amd fork's, written anew. The F1
counter shows all frames, the title's (*) and its milliseconds.
Diagnostics: VICTORY_FRAMEGEN_ONLY_MADE=1, VICTORY_FRAMEGEN_DEBUG=1.
Known: the HUD is made between frames too; ghosts at low frame rates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title lays its whole interface over the finished picture in one draw
(its UI renderer's default_ps_tex into the display-sized target). Right
before that draw the target is copied, and at the present of that same
texture the copy is given to AMD's generation as the picture without the
interface, so the interface is kept as drawn instead of being made
between frames. Paired by the texture presented: the title records on
several threads and pairing with the last upscaled frame missed one frame
in eight (the notifications flickered). The owner: map and notifications
steady now.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The launcher's Graphics settings get "Frame generation": with an FSR 4
upscaler setting and AMD's frame generation DLL beside the upscaler it
sets VICTORY_FRAMEGEN=1 (off by default). AMD's machine-learning
generator is now asked for (VICTORY_FRAMEGEN_ML=0: FSR 3's analytical
one): with the inputs right the owner found it the better one, without
the ghost of the car the analytical one left at 14-17 frames a second.

CONTRIBUTING.md: base work on development and open pull requests against
it, what a pull request should say, and the rules every change follows
(nothing from the game, the game not named, no copied code). The
pre-commit hook's comment names the command that installs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:41:24 +00:00
github manually merged commit 120b9e0a9e into gh-pr/1/base 2026-12-01 20:41:26 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.