Dropped draws named with their reason in a release build (VICTORY_DROP_NOTES=1) #1536
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1536
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1536"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@T1bolus on GitHub · 2026-11-28 21:23 UTC · original
T1bolus:pr/drops-reasons-2→main· +307 −8 · 6 files · 4 commits · closed without mergingRebased 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
@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.
a18cf7c8c4to1008b929fdPull request closed