Dropped draws named with their reason in a release build (VICTORY_DROP_NOTES=1) #1536

Closed
github-bot wants to merge 4 commits from github-bot/gh-1536 into main AGit
Owner

@⁠T1bolus on GitHub · 2026-11-28 21:23 UTC · original
T1bolus:pr/drops-reasons-2 → main · +307 −8 · 6 files · 4 commits · closed without merging

Rebased successor of #1238, which was closed for conflicts with the moved main ("rebase it on the current main and open a new pull request" - this is that rebase, onto today's main with its ~100 merged pull requests; 553 victory-gpu tests green on it).

What this does

VICTORY_DROP_NOTES=1 names, in a release build, what the draws and dispatches dropped without a host pipeline were waiting for, refused by or kept out of. Not a diagnostics build - the reasons come from the release chain's own counting sites, and the gate reads the file like every other switch.

  • The counting sites' own note_drop_reason (what every DROPPED.fetch_add calls) records the reason when the gate is on: left out on purpose, still being made, refused by name, untranslated stage. The reasons sit beside the 7 drop sites across the preparation and binding paths (draw.rs, pipeline.rs, pipeline/make.rs).

  • An aggregate is kept per frame, and with the flag on a line after the fps line averages it:

    dropped without a host pipeline a frame, by reason: 114 a stage of the ray-tracing structure builder, which is off, 22 the host pipeline is still being made, 0 named in VICTORY_LEAVE_OUT, left out

  • The switch reads from victory-settings.txt (settings() names it), and VICTORY_DROP_NOTES sits among KEPT (the env vars a start keeps), so a direct launch with the env set works too. The gate says so once per run: drop notes on (VICTORY_DROP_NOTES=1).

Measured on a GeForce RTX 4070 SUPER 12 GB (AMD Ryzen 5 7600, Series S profile, DLSS frame generation 2x): this settles the open question of the ~1052 draws dropped a frame - they are the ray-tracing structure builder's stages (which is off) plus a small VICTORY_LEAVE_OUT rest, with 0 refusals and 0 still being made in the steady state. No dxil change, so the flag is deliberately not in the shader cache's key list.

Off by default. #800 works toward the same naming in diagnostics builds - this one names the reasons in a release build, across the preparation and binding sites, with the per-frame line.

Checks

  • cargo check --workspace clean; cargo test -p victory-gpu --locked 553/553 green on today's main, including a_dropped_draw_is_counted_by_reason_without_the_diagnostics_feature and drop_reasons_name_the_want_of_a_host_pipeline, which prove the un-gated chain end to end.
  • Measured in play on this very chain (the log line above is from a session of today's main).
**@⁠T1bolus** on GitHub · 2026-11-28 21:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1536) `T1bolus:pr/drops-reasons-2` → `main` · +307 −8 · 6 files · 4 commits · closed without merging Rebased successor of #1238, which was closed for conflicts with the moved main ("rebase it on the current main and open a new pull request" - this is that rebase, onto today's main with its ~100 merged pull requests; 553 victory-gpu tests green on it). ## What this does VICTORY_DROP_NOTES=1 names, in a release build, what the draws and dispatches dropped without a host pipeline were waiting for, refused by or kept out of. Not a diagnostics build - the reasons come from the release chain's own counting sites, and the gate reads the file like every other switch. - The counting sites' own note_drop_reason (what every DROPPED.fetch_add calls) records the reason when the gate is on: left out on purpose, still being made, refused by name, untranslated stage. The reasons sit beside the 7 drop sites across the preparation and binding paths (draw.rs, pipeline.rs, pipeline/make.rs). - An aggregate is kept per frame, and with the flag on a line after the fps line averages it: dropped without a host pipeline a frame, by reason: 114 a stage of the ray-tracing structure builder, which is off, 22 the host pipeline is still being made, 0 named in VICTORY_LEAVE_OUT, left out - The switch reads from victory-settings.txt (settings() names it), and VICTORY_DROP_NOTES sits among KEPT (the env vars a start keeps), so a direct launch with the env set works too. The gate says so once per run: drop notes on (VICTORY_DROP_NOTES=1). Measured on a GeForce RTX 4070 SUPER 12 GB (AMD Ryzen 5 7600, Series S profile, DLSS frame generation 2x): this settles the open question of the ~1052 draws dropped a frame - they are the ray-tracing structure builder's stages (which is off) plus a small VICTORY_LEAVE_OUT rest, with 0 refusals and 0 still being made in the steady state. No dxil change, so the flag is deliberately not in the shader cache's key list. Off by default. #800 works toward the same naming in diagnostics builds - this one names the reasons in a release build, across the preparation and binding sites, with the per-frame line. ## Checks - cargo check --workspace clean; cargo test -p victory-gpu --locked 553/553 green on today's main, including a_dropped_draw_is_counted_by_reason_without_the_diagnostics_feature and drop_reasons_name_the_want_of_a_host_pipeline, which prove the un-gated chain end to end. - Measured in play on this very chain (the log line above is from a session of today's main).
The frame line counts the draws and dispatches dropped without a host
pipeline but not why. With VICTORY_DROP_NOTES=1 they are counted by
reason and a line a frame names the spread; without the flag, counters
only, and the old lines as they were.

The reasons: a pipeline being made; one the host refused, by its own
name (root signature, compute, mesh, graphics, or what `refuse` logs
once); a shader that does not translate, by stage; a stage of the
ray-tracing structure builder, which is off; left-out pipelines with
their own why; and the preparation giving up on this thread (a root
view or a descriptor table without a slot or heap, an index buffer or
rectangle vertices outside their memory, another kind of pipeline,
the mesh dispatch switches, a draw skipped by VICTORY_SKIP_PIPELINES).
Each reason is named where it comes up and taken where the drop is
counted (`note_drop_reason`): `make::drop_reason` reads the pipeline
without starting or waiting for it, as `missing` does but without
hashes, and `HostPipeline::new` leaves a refusal on the thread that
built for `make` to take.

The flag moves counters and adds one line; it changes no translation
and no pipeline, so it is no part of the shader cache's keys.
A game log could not tell why the reasons line stayed away: the gate
was read once and silently. `drop_notes` now holds its once-read
answer in a cell, says "drop notes on (VICTORY_DROP_NOTES=1)" once
when the run carries the notes - without that line, the flag died in
the start's clearing or the exe is older than the counter - and a test
sets the gate itself (spending the one read of the environment) to
prove the chain the counting sites use, flag on and flag off.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:24:57 +00:00
The dead-code readers (the send memory's gpu, the pools' and host pressure's counters), the needless borrow in the reasons' tie-break, the intentional borrow ends in present_planes, the checked arithmetic forms, and the constant test assertion's variables.
Author
Owner

@⁠T1bolus on GitHub · 2026-11-28 21:53 UTC · original · edited 2026-11-28 22:14 UTC

Heads up: this branch keeps the feature only - the four picks. The two clippy commits that briefly sat on it are gone again: with the volume of pull requests here, main's own clippy fixes will land first, and mixing them into this branch would only create conflicts against them.

What stays true: the CI on this branch surfaces main's own breakage, which this branch neither introduces nor can fix - 17 clippy findings hidden behind main's failing victory-shader build, and lower.rs sitting 12 KB over the asset policy's 655,360-byte limit, so repository_passes_policy fails here exactly as it does on main. The picks themselves are clean: 553 victory-gpu tests green on today's main.

**@⁠T1bolus** on GitHub · 2026-11-28 21:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1536#issuecomment-7246344503) · edited 2026-11-28 22:14 UTC Heads up: this branch keeps the feature only - the four picks. The two clippy commits that briefly sat on it are gone again: with the volume of pull requests here, main's own clippy fixes will land first, and mixing them into this branch would only create conflicts against them. What stays true: the CI on this branch surfaces main's own breakage, which this branch neither introduces nor can fix - 17 clippy findings hidden behind main's failing victory-shader build, and lower.rs sitting 12 KB over the asset policy's 655,360-byte limit, so repository_passes_policy fails here exactly as it does on main. The picks themselves are clean: 553 victory-gpu tests green on today's main.
github-bot force-pushed github-bot/gh-1536 from a18cf7c8c4 to 1008b929fd 2026-11-28 22:13:37 +00:00 Compare
github-bot closed this pull request 2026-11-28 22:30:14 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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