Diagnostics: an indirect draw's "prepare failed" names the exit that dropped it #360
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!360
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-360"
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?
@Jesper-Andersson on GitHub · 2026-11-26 18:47 UTC · original
Jesper-Andersson:worktree-issue-70→main· +28 −11 · 1 files · 1 commits · openRefs #70, #35.
An indirect draw or dispatch that can't be prepared is counted as
indirect kind <k>: prepare failed, with no word on why (crates/victory-gpu/src/draw.rs,State::execute_indirect).State::prepare_forandState::bindhave about a dozen ways to give false, and most of them log only once per run (once!), two of them not at all. #70 (RTX 4070 Ti SUPER) reports up to 3,627 such drops in a frame, and an RTX 2070 SUPER shows the same, with no way to tell which exit they come from.Change
prepare_for,bind,root_uavandroot_srv_tablethat drops the draw records a short reason in a thread-local (not_bound). The indirect path reads it, and the drop reason becomesprepare failed (<why>), for exampleprepare failed (descriptor table: no free slots). The per-frame drop summary then counts each exit on its own line, with no new counter.root UAV: no free slotandroot SRV: no free slot(host.dynamic(1)giving none) were silent before.--features diagnosticsthe thread-local isn't compiled,not_boundjust gives false, and the drop text staysprepare failed.Where it does nothing
Measured
RTX 2070 SUPER 8 GB (driver 621.14), Ryzen 7 5800X, 32 GB, Windows 11, diag build,
scripts\play.ps1defaults, prologue.With this change (on main
c9c932cplus a local merge of PR #237 and other open PRs, about 3.5 minutes), every indirect drop had one reason:That's the dynamic descriptor pool running out (#35), not the indirect clamp. Details are in #70. It has no effect on frame time: it's a diagnostics label.
Checks
cargo build --locked --profile diag -p victory --features diagnostics: builds; used for the run above.cargo clippy --locked -p victory-gpu, with and without--features diagnostics: nothing in changed code. The only warning is main'sopendoesn't need a mutable reference (#241, fixed by #324).cargo xtask policy(pre-commit hook): 1 files ok.cargo test: not run. Another test was using this PC at the time.Not checked
Related
indirect.rs(dispatch splitting). It doesn't overlap.This change was made with AI assistance (Claude Code).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.