Diag: the dropped draws of a frame named by reason, in release builds too (VICTORY_DROP_NOTES=1) #1238
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!1238
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1238"
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 16:13 UTC · original
T1bolus:pr/drops-reasons→main· +307 −6 · 6 files · 4 commits · closed without mergingA frame's dropped draws, named by reason (
VICTORY_DROP_NOTES=1)Every site that feeds
dropped N without a host pipelinenames a reason: 15 refusal points acrossprepare_for,bind,root_uav,root_srv_tableandrectangles, and all 7DROPPEDcounters indraw.rs. The reason travels on a thread-local from the refusing site to the drop counter, an aggregate is kept per frame, and with the flag on a line after the fps line averages it:Measured on a GeForce RTX 4070 SUPER 12 GB (AMD Ryzen 5 7600, 6 Zen 4 cores, Series S profile, DLSS frame generation 2x): this settles the open question of the ~206-1052 draws dropped a frame — they are the ray-tracing structure builder's stages (which is off), plus a small
VICTORY_LEAVE_OUTrest. No refusals, nothing being made.The switch reads from
victory-settings.txtlike every other switch (settings()names it), andVICTORY_DROP_NOTESsits amongKEPT(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).Off by default; no dxil change, so the flag is deliberately not in the shader cache's key list. #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 --workspaceclean;cargo test -p victory-gpu --lockedgreen, includinga_dropped_draw_is_counted_by_reason_without_the_diagnostics_feature, which proves the un-gated chain end to end.@trustno1-coder on GitHub · 2026-11-28 19:23 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed