RTX 50 / 12 GB: no 14 fps frame-gen lock, weather particles drawn, 100 ms pipeline wait, release memory logs #335

Closed
github-bot wants to merge 0 commits from github-bot/gh-335 into main AGit
Owner

@⁠AVD-appezhax on GitHub · 2026-12-01 14:20 UTC · original
AVD-appezhax:fix/what-worked-rtx50 → main · +368 −44 · 13 files · 4 commits · closed without merging

This replaces #152, which closed by itself when main was rewritten. It has been rebased onto the new main (94c3c5f) and keeps only the changes that were tested and worked.

Two commits from #152 are left out:

  • letting go of given-up render targets: it freed nothing here, because the growing targets are held by the title;
  • the retry of pipelines refused for want of memory: the refusal it was meant for was a compiler bug, now fixed by commit 4.

If the release batch already carries some of these commits, take only what is new.

1. Card awake left out while Reflex paces frames (#20, the 14 fps lock)

With frame generation, Reflex counts the endless job behind VICTORY_CARD_AWAKE=1, takes every frame for GPU-bound, and sleeps inside the present. About half of the starts then sit at 71.4 ms for the whole session. The job is now left out while Reflex is on; VICTORY_CARD_AWAKE=always restores the old behaviour. This is a port of trustno1-coder/VIctory-NVIDIA#1938.

Tested (RTX 5070 12 GB): before, 1,196 of 1,275 five-second windows were locked. After, five runs never locked.

2. Drop reasons and the card's memory by holder, in release logs

  • Every 5 s, the top reasons draws were dropped, with shader hashes.
  • Every minute, the card's use split by holder: textures (title-filled, render targets and twins), texture-block space, tiles, buffer and window copies, pipelines made, and what the layer does not count.

This is counting only. These lines found the weather-particle bug and the render-target growth below.

3. Pipeline wait budget default: 500 ms down to 100 ms

The first crash or explosion of a kind froze the game for 490 ms to 2.5 s while its pipelines were made. At 100 ms those freezes are gone; over 25 minutes of play, draws dropped while "being made" stayed under one a frame. Passes over the screen keep their own 10 s budget. VICTORY_PIPELINE_WAIT_MS=500 restores the old wait.

4. Atomic subtractions on group memory are loops on NVIDIA

weatherParticle:CS_BeginUpdate (7f61193d2c0e5f22) was refused with E_OUTOFMEMORY in every run, even with the card nearly empty. That is NVIDIA's compiler rejecting an atomic subtraction on group-shared memory.

This is a port of trustno1-coder/VIctory-NVIDIA#1939 (itself Marvisak/VIctory#3619). The setting is part of the shader cache key, and VICTORY_ATOMIC_SUB_LOOP=0/1 overrides it. One change from upstream: the vendor is read from the adapter the host device is made on (hardware_adapter), not from EnumAdapters1(0), which can be an integrated GPU.

Tested: the pipeline is now made at the first try (host pipeline shaders=[compute 7f61193d2c0e5f22]).

Still open, for whoever picks it up (#133)

On a 12 GB card, copies of textures the host renders to or writes grow from about 1.8 GB to 2.5 GB over 25 minutes. All of them are held by the title, none sits in memory the title gave up, and none is idle and unheld. The card ends over its budget, after which DLSS Quality with 4x frame generation reports "out of VRAM" and frame generation switches off. DLSS Balanced keeps frame generation on.

The biggest kinds in one late sample (shape, format and flags):

  • 2048² with 12 levels, format 28 (0xc00005): 85 MB
  • many 256–2048² single-level format 53 (0x80300006), all idle 30 s: about 260 MB together

Checks (on the new main)

  • cargo clippy --workspace --all-targets --locked -- -D warnings: clean.
  • cargo test -p victory-gpu -p victory-shader --lib --locked: 475 and 292 passed, 0 failed.

🤖 Generated with Claude Code

**@⁠AVD-appezhax** on GitHub · 2026-12-01 14:20 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/335) `AVD-appezhax:fix/what-worked-rtx50` → `main` · +368 −44 · 13 files · 4 commits · closed without merging This replaces #152, which closed by itself when main was rewritten. It has been rebased onto the new main (`94c3c5f`) and keeps **only the changes that were tested and worked**. Two commits from #152 are left out: - letting go of given-up render targets: it freed nothing here, because the growing targets are held by the title; - the retry of pipelines refused for want of memory: the refusal it was meant for was a compiler bug, now fixed by commit 4. If the release batch already carries some of these commits, take only what is new. ## 1. Card awake left out while Reflex paces frames (#20, the 14 fps lock) With frame generation, Reflex counts the endless job behind `VICTORY_CARD_AWAKE=1`, takes every frame for GPU-bound, and sleeps inside the present. About half of the starts then sit at 71.4 ms for the whole session. The job is now left out while Reflex is on; `VICTORY_CARD_AWAKE=always` restores the old behaviour. This is a port of trustno1-coder/VIctory-NVIDIA#1938. **Tested (RTX 5070 12 GB):** before, 1,196 of 1,275 five-second windows were locked. After, five runs never locked. ## 2. Drop reasons and the card's memory by holder, in release logs - Every 5 s, the top reasons draws were dropped, with shader hashes. - Every minute, the card's use split by holder: textures (title-filled, render targets and twins), texture-block space, tiles, buffer and window copies, pipelines made, and what the layer does not count. This is counting only. These lines found the weather-particle bug and the render-target growth below. ## 3. Pipeline wait budget default: 500 ms down to 100 ms The first crash or explosion of a kind froze the game for 490 ms to 2.5 s while its pipelines were made. At 100 ms those freezes are gone; over 25 minutes of play, draws dropped while "being made" stayed under one a frame. Passes over the screen keep their own 10 s budget. `VICTORY_PIPELINE_WAIT_MS=500` restores the old wait. ## 4. Atomic subtractions on group memory are loops on NVIDIA `weatherParticle:CS_BeginUpdate` (`7f61193d2c0e5f22`) was refused with E_OUTOFMEMORY in every run, even with the card nearly empty. That is NVIDIA's compiler rejecting an atomic subtraction on group-shared memory. This is a port of trustno1-coder/VIctory-NVIDIA#1939 (itself Marvisak/VIctory#3619). The setting is part of the shader cache key, and `VICTORY_ATOMIC_SUB_LOOP=0/1` overrides it. One change from upstream: the vendor is read from the adapter the host device is made on (`hardware_adapter`), not from `EnumAdapters1(0)`, which can be an integrated GPU. **Tested:** the pipeline is now made at the first try (`host pipeline shaders=[compute 7f61193d2c0e5f22]`). ## Still open, for whoever picks it up (#133) On a 12 GB card, copies of textures the host renders to or writes grow from about 1.8 GB to 2.5 GB over 25 minutes. All of them are held by the title, none sits in memory the title gave up, and none is idle and unheld. The card ends over its budget, after which DLSS Quality with 4x frame generation reports "out of VRAM" and frame generation switches off. DLSS Balanced keeps frame generation on. The biggest kinds in one late sample (shape, format and flags): - 2048² with 12 levels, format 28 (`0xc00005`): 85 MB - many 256–2048² single-level format 53 (`0x80300006`), all idle 30 s: about 260 MB together ## Checks (on the new main) - `cargo clippy --workspace --all-targets --locked -- -D warnings`: clean. - `cargo test -p victory-gpu -p victory-shader --lib --locked`: 475 and 292 passed, 0 failed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With frame generation on, Reflex low latency is on. Reflex measures each
frame's GPU time from the card's queues and counts the never-ending
compute job of VICTORY_CARD_AWAKE=1 (which the launcher sets) as work:
the frame looks GPU-bound, Reflex sleeps inside each present, and the
game holds 14.0 fps (71.4 ms) for the whole session in about half of
the starts (#20).

The job is now left out while Reflex is on, said once in the log.
VICTORY_CARD_AWAKE=always keeps the old behaviour.

Port of trustno1-coder/VIctory-NVIDIA PR #1938.

Tested: RTX 5070 12 GB, 1440p, DLSS Quality, 4x frame generation.
Before, a 20-minute run sat at 71.4 ms in 1,196 of 1,275 five-second
windows, 24 ms of each frame inside the present call. After, two runs
had none (median 33-55 ms).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 058e733789)
Two things release logs could not tell on a 12 GB card:

- 100-360 draws a frame were dropped "without a host pipeline (0 being
  made)" while distant objects flashed, and only diagnostics builds
  named a reason. The tally by reason (pipeline::note_drop) now runs in
  every build and the top 12 are logged every five seconds. Drops of a
  draw that has a host pipeline (its binding or buffers failed) get a
  reason with its shader hashes instead of none; refused pipelines are
  named by hash instead of a Debug dump of their shaders.
- VRAM in use grows past the budget over a session while the texture
  pool stays flat (#133). Once a minute a line now splits the card's use
  into host textures (title-filled, render targets and twins), free
  space in texture blocks, tiles, card copies of title buffers and
  windows with their before-twins, the pipelines made, and what the
  layer does not count (driver, DLSS, frame generation).

Counting only: what is drawn and allocated is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 32c819e37a)
The first crash, explosion or other effect of a kind froze the game: its
pipelines were made on first use and the title frame waited up to half a
second for them (frames of 490 ms in a row, up to 2.5 s, each lined up
with "first bind" / "shader translated" lines). At 100 ms a draw whose
pipeline is not ready is dropped for a frame or two instead.

Tested on an RTX 5070 12 GB with VICTORY_PIPELINE_WAIT_MS=100: the
player saw the freezes on crashes go, and over 25 minutes draws dropped
"being made" showed in ten five-second windows, under one a frame in all
but one (6.4). Passes over the screen keep their own 10 s budget
(VICTORY_SCREEN_WAIT_MS), so the lighting tables are not affected.
VICTORY_PIPELINE_WAIT_MS=500 restores the old wait.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 2220129ecb)
weatherParticle:CS_BeginUpdate (compute 7f61193d2c0e5f22) was refused
by the driver with E_OUTOFMEMORY in every run on an RTX 5070, with the
card nearly empty: its dispatch was dropped for the whole session.
NVIDIA's compiler refuses an atomic subtraction on group-shared memory
(atomicrmw sub, or atomicrmw add of a negated value) that way; it is not
memory.

Module::atomic_subtracts rewrites such atomics as a compare-exchange
loop with the same result, in Shader::finish, on an NVIDIA host only
(VICTORY_ATOMIC_SUB_LOOP=1 or =0 overrides). The setting is part of the
shader cache key. The vendor is that of the adapter the host device is
made on (hardware_adapter: the card with the most memory of its own),
not Windows' first adapter, which on a PC with a processor's graphics
may be that one.

Port of trustno1-coder/VIctory-NVIDIA#1939 (itself Marvisak/VIctory#3619
by notquiteog), with the shader cache key adapted to this tree.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 250e7f487f96db03e01e3aa3b1cab751f927521a)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:20:49 +00:00
Author
Owner

@⁠Aniseto on GitHub · 2026-12-01 14:39 UTC · original

Ran the victory-gpu and victory-shader library suites at 10d0d7c on an NVIDIA Blackwell desktop part with 16 GB of VRAM. This is a synthetic check; no retail-title run was done here.

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own CARGO_TARGET_DIR, no local patches.

cargo test -q -p victory-gpu --lib --locked -- --test-threads=1
475 passed; 0 failed; 37 ignored; 0 filtered out      (exit 0)

cargo test -q -p victory-shader --lib --locked -- --test-threads=1
292 passed; 0 failed; 4 ignored; 0 filtered out      (exit 0)

The passed/failed counts match the description's 475 and 292 on an RTX 5070; the wider filters select ignored tests here (37 and 4). The description's 14 fps Reflex lock A/B and the first-try pipeline creation were not repeated in a scene, so no claim is made about the frame-rate symptom on this adapter.

Not tested: the full workspace suite, a retail title, the 14 fps frame-gen lock, pipeline-creation timing, Wine, AMD adapters, release profile, game data.

AI-assisted (OpenCode), model: MiMo-V2.6-Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the suites, wrote this report; the worktree was not modified; no game data was used.

**@⁠Aniseto** on GitHub · 2026-12-01 14:39 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/335#issuecomment-7314604831) Ran the `victory-gpu` and `victory-shader` library suites at `10d0d7c` on an NVIDIA Blackwell desktop part with 16 GB of VRAM. This is a synthetic check; no retail-title run was done here. Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only, 16 GB, mesh shaders) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.98.1 (48a229cea 2026-09-01), MSVC 14.44.35207, debug build, detached worktree at the exact PR head, own `CARGO_TARGET_DIR`, no local patches. ``` cargo test -q -p victory-gpu --lib --locked -- --test-threads=1 475 passed; 0 failed; 37 ignored; 0 filtered out (exit 0) cargo test -q -p victory-shader --lib --locked -- --test-threads=1 292 passed; 0 failed; 4 ignored; 0 filtered out (exit 0) ``` The passed/failed counts match the description's 475 and 292 on an RTX 5070; the wider filters select ignored tests here (37 and 4). The description's 14 fps Reflex lock A/B and the first-try pipeline creation were not repeated in a scene, so no claim is made about the frame-rate symptom on this adapter. Not tested: the full workspace suite, a retail title, the 14 fps frame-gen lock, pipeline-creation timing, Wine, AMD adapters, release profile, game data. AI-assisted (OpenCode), model: **MiMo-V2.6-Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the suites, wrote this report; the worktree was not modified; no game data was used.
Author
Owner

@⁠readmet3xt-lab on GitHub · 2026-12-01 21:09 UTC · original

Thank you. This pull request bundles several independent changes across thirteen files: the frame-generation rate, particles, a pipeline wait, the translator and others. We test and take changes one at a time, each behind its own switch where it changes behaviour. Could you split it into one pull request per change, each with what it fixes and how you measured it? We'll review them in that form.

**@⁠readmet3xt-lab** on GitHub · 2026-12-01 21:09 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/335#issuecomment-7325830441) Thank you. This pull request bundles several independent changes across thirteen files: the frame-generation rate, particles, a pipeline wait, the translator and others. We test and take changes one at a time, each behind its own switch where it changes behaviour. Could you split it into one pull request per change, each with what it fixes and how you measured it? We'll review them in that form.
github-bot closed this pull request 2026-12-01 22:32:55 +00:00
Author
Owner

@⁠AVD-appezhax on GitHub · 2026-12-01 22:30 UTC · original

Split as asked, one change per pull request, each applying alone on main with what it fixes, how it was measured, and its switch:

  • #398 card awake left out while Reflex paces frames (14 fps lock), switch VICTORY_CARD_AWAKE=always
  • #396 drop reasons and card memory by holder in release logs (counting only)
  • #397 pipeline wait 500 -> 100 ms, switch VICTORY_PIPELINE_WAIT_MS=500
  • #402 atomic subtractions as loops on NVIDIA (weather particles), switch VICTORY_ATOMIC_SUB_LOOP=0/1

Closing this one in favour of them.

**@⁠AVD-appezhax** on GitHub · 2026-12-01 22:30 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/335#issuecomment-7327956311) Split as asked, one change per pull request, each applying alone on main with what it fixes, how it was measured, and its switch: - #398 card awake left out while Reflex paces frames (14 fps lock), switch `VICTORY_CARD_AWAKE=always` - #396 drop reasons and card memory by holder in release logs (counting only) - #397 pipeline wait 500 -> 100 ms, switch `VICTORY_PIPELINE_WAIT_MS=500` - #402 atomic subtractions as loops on NVIDIA (weather particles), switch `VICTORY_ATOMIC_SUB_LOOP=0/1` Closing this one in favour of them.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.