Defect ledger: drops counted by reason and pipeline in every build #3392

Open
Hyo1d wants to merge 1 commit from upstream-pr/3392 into main
Hyo1d commented 2026-11-29 22:44:07 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Hyo1d on 2026-11-29T22:44:07Z.


A thank-you from a player: my local build for an RTX 3080 Ti uses a good number of this
repository's commits (the wave64 fold, the dynamic slot work, the card meter, the title watchdog fix, late card
windows). If it is useful, I post about this port on X as @0xdlz: follows welcome.

What it does

Release logs say dropped N draws ... without a host pipeline with no reason. This adds a small always-on ledger
(crates/victory-gpu/src/ledger.rs, 158 lines) that counts every dropped draw, dispatch and indirect execution
by reason and by pipeline, and prints them on the frame line's interval:

  • ledger drop per_frame=… total=… objects=… how="…" what=[shader hashes]: one line per reason and pipeline,
    largest first, plus a line for the reasons not listed.
  • ledger site: the count behind each warning that is logged only once.

No behaviour changes: counters and log lines only. Nothing is read from title memory and no game data is added.

Why it was useful to us

  • Thirteen runs showed the "dropped" figure was almost entirely the ray-tracing structure builder's stages, left
    out on purpose, which hid the real ones.
  • With the reasons split, the real drops on a 12 GB card were indirect: prepare failed on a handful of pipelines
    during world load (dynamic descriptor slots refused), 0.19 to 12 a frame, and every visual defect a player
    reported could be matched to a line without a screenshot.

How it was tested

  • GPU and profile: RTX 3080 Ti 12 GB, Series S profile, 1280x720 to 1920x1080, DLSS Quality, FSR 3 frame generation 2x, ray tracing off.

  • Before: one "dropped N" figure with no reason. After: the lines above.

  • Shader changes: none.

  • Windows 11, Ryzen 9 9950X3D, RTX 3080 Ti (12 GB), driver 621.40.

  • cargo check -p victory-gpu: clean.

  • cargo test -p victory-gpu --lib: 915 to 916 of 916 pass over three runs. The failures are not from this
    change: shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails on main at 716a0c99d too
    ("VICTORY_SCALAR_SPLITS is not read by the translator any more"), and one other test fails per run, a different
    one each time (places_written_after_sending_are_learned, host_list_uav_pool_lifecycle…,
    preload_restart_preserves_paths…); each passes when run alone.

  • cargo clippy -p victory-gpu --all-targets -- -D warnings stops in victory-shader on main as well (two
    unused imports and a loop condition), before reaching this file.

  • The same ledger has run in every play session of our local build since 2026-11-29 (sessions of 3 to 11 minutes
    in the open world).

Findings from the same PC that may help (no code)

  • NVIDIA's driver shader cache is keyed by the executable's path. A preload run from another folder than the
    one the game is started from leaves the game compiling again. Running victory preload from the play path
    fixed it for us.
  • v2026.11.29.01 hung at start on this PC two times out of three (white window, could not be closed; the
    log ends after the XMem lines). The same shaders and library on our older base start every time. We did not
    find the cause; 853af252d (known-pipelines book on its own thread) is our untested suspect.
  • Bus traffic on a 12 GB card (nvidia-smi dmon, open world): median 6.0 GB/s into the card (p90 9.3, max
    12.8) and 1.6 GB/s out, with the card 72 % busy at 248 W. Of 6.7 to 8.7 GB of host copies of title memory,
    1.96 GB were on the card. Section 0 of docs/unified-memory-audit.md asks for this number.
  • Raising VICTORY_CARD_WINDOWS_MB from 1018 to 1536 with VICTORY_CARD_ROOM_FOR_WINDOWS=1 made it worse
    on 12 GB: 12 to 16 fps from about 20, the card's time in the title's lists 42.8 ms a frame from 26.4, bus
    traffic unchanged, and 5 GB of texture copies let go in three minutes.
  • The card meter's per-pipeline table is flat on this card: 31 ms a frame over 1,293 pipelines, the largest 1.0 ms.

More we can send if wanted

  • A paired form for 23 wave64 programs on 32-lane hosts (trees, cascade shadows, water, particle emitters, liquid
    trails), including ds_add_rtn_u32, ds_wrxchg_rtn_b32, ds_cmpst_rtn_b32, ds_read2st64_b32 and
    ds_write2st64_b32. It takes precedence over the exact fold for the programs named in VICTORY_PAIRED_FOR.
  • A card rule for letting idle texture copies go when the card, not the PC, is the one short of memory
    (VICTORY_TEXTURE_CARD_RULE), which ended "textures never load" on a 12 GB card with 64 GB of RAM.

Checked for overlap

  • Searched pull requests for "ledger" (2026-11-30). Related by name only: #2910 and #2538 are about card memory accounting, not dropped draws.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5555952110 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3392). Originally posted by [Hyo1d](https://github.com/Hyo1d) on 2026-11-29T22:44:07Z. --- A thank-you from a player: my local build for an RTX 3080 Ti uses a good number of this repository's commits (the wave64 fold, the dynamic slot work, the card meter, the title watchdog fix, late card windows). If it is useful, I post about this port on X as [@0xdlz](https://x.com/0xdlz): follows welcome. ## What it does Release logs say `dropped N draws ... without a host pipeline` with no reason. This adds a small always-on ledger (`crates/victory-gpu/src/ledger.rs`, 158 lines) that counts every dropped draw, dispatch and indirect execution by *reason* and by *pipeline*, and prints them on the frame line's interval: - `ledger drop per_frame=… total=… objects=… how="…" what=[shader hashes]`: one line per reason and pipeline, largest first, plus a line for the reasons not listed. - `ledger site`: the count behind each warning that is logged only once. No behaviour changes: counters and log lines only. Nothing is read from title memory and no game data is added. ## Why it was useful to us - Thirteen runs showed the "dropped" figure was almost entirely the ray-tracing structure builder's stages, left out on purpose, which hid the real ones. - With the reasons split, the real drops on a 12 GB card were `indirect: prepare failed` on a handful of pipelines during world load (dynamic descriptor slots refused), 0.19 to 12 a frame, and every visual defect a player reported could be matched to a line without a screenshot. ## How it was tested - GPU and profile: RTX 3080 Ti 12 GB, Series S profile, 1280x720 to 1920x1080, DLSS Quality, FSR 3 frame generation 2x, ray tracing off. - Before: one "dropped N" figure with no reason. After: the lines above. - Shader changes: none. - Windows 11, Ryzen 9 9950X3D, RTX 3080 Ti (12 GB), driver 621.40. - `cargo check -p victory-gpu`: clean. - `cargo test -p victory-gpu --lib`: 915 to 916 of 916 pass over three runs. The failures are not from this change: `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fails on `main` at `716a0c99d` too ("VICTORY_SCALAR_SPLITS is not read by the translator any more"), and one other test fails per run, a different one each time (`places_written_after_sending_are_learned`, `host_list_uav_pool_lifecycle…`, `preload_restart_preserves_paths…`); each passes when run alone. - `cargo clippy -p victory-gpu --all-targets -- -D warnings` stops in `victory-shader` on `main` as well (two unused imports and a loop condition), before reaching this file. - The same ledger has run in every play session of our local build since 2026-11-29 (sessions of 3 to 11 minutes in the open world). ## Findings from the same PC that may help (no code) - **NVIDIA's driver shader cache is keyed by the executable's path.** A preload run from another folder than the one the game is started from leaves the game compiling again. Running `victory preload` from the play path fixed it for us. - **`v2026.11.29.01` hung at start on this PC two times out of three** (white window, could not be closed; the log ends after the XMem lines). The same shaders and library on our older base start every time. We did not find the cause; `853af252d` (known-pipelines book on its own thread) is our untested suspect. - **Bus traffic on a 12 GB card** (`nvidia-smi dmon`, open world): median 6.0 GB/s into the card (p90 9.3, max 12.8) and 1.6 GB/s out, with the card 72 % busy at 248 W. Of 6.7 to 8.7 GB of host copies of title memory, 1.96 GB were on the card. Section 0 of `docs/unified-memory-audit.md` asks for this number. - **Raising `VICTORY_CARD_WINDOWS_MB` from 1018 to 1536 with `VICTORY_CARD_ROOM_FOR_WINDOWS=1` made it worse** on 12 GB: 12 to 16 fps from about 20, the card's time in the title's lists 42.8 ms a frame from 26.4, bus traffic unchanged, and 5 GB of texture copies let go in three minutes. - The card meter's per-pipeline table is flat on this card: 31 ms a frame over 1,293 pipelines, the largest 1.0 ms. ## More we can send if wanted - A paired form for 23 wave64 programs on 32-lane hosts (trees, cascade shadows, water, particle emitters, liquid trails), including `ds_add_rtn_u32`, `ds_wrxchg_rtn_b32`, `ds_cmpst_rtn_b32`, `ds_read2st64_b32` and `ds_write2st64_b32`. It takes precedence over the exact fold for the programs named in `VICTORY_PAIRED_FOR`. - A card rule for letting idle texture copies go when the card, not the PC, is the one short of memory (`VICTORY_TEXTURE_CARD_RULE`), which ended "textures never load" on a 12 GB card with 64 GB of RAM. ## Checked for overlap - [x] Searched pull requests for "ledger" (2026-11-30). Related by name only: #2910 and #2538 are about card memory accounting, not dropped draws.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3392:upstream-pr/3392'
git switch 'upstream-pr/3392'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3392'
git switch 'upstream-pr/3392'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3392'
git switch 'upstream-pr/3392'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3392'
git switch 'main'
git merge --squash 'upstream-pr/3392'
git switch 'main'
git merge --ff-only 'upstream-pr/3392'
git switch 'main'
git merge 'upstream-pr/3392'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!3392
No description provided.