native: count the descriptor records remirrored at submission (VICTORY_TRACE_DESCRIPTORS) #119
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!119
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-119"
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?
@Olima34 on GitHub · 2026-11-26 17:24 UTC · original
Olima34:feat/trace-descriptor-remirror→main· +167 −0 · 5 files · 1 commits · merged 2026-11-26 18:09 UTCFirst measuring PR for #43, as you suggested: how many descriptor records the title rewrites with plain stores, which no device call reports.
What.
NativeHost::remirror_tablesalready compares each bound table's records with those it last mirrored, at every draw and dispatch. WithVICTORY_TRACE_DESCRIPTORSset (any value):NativeHost::executecounts submissions with a drop guard (error returns too), and the most records changed in one submission;native draws so far) is followed by adescriptor remirrorline: changed and checked since the last line, per frame, submissions, most in one submission, and the heaps sorted by records changed.Off, the cost is one
OnceLockread per table remirror and per submission.Limits (in the doc bullet).
Next. A second PR finds the store sites themselves:
That answers "how many patch sites". I'll post it separately so this one stays small.
Test.
native::descriptor_trace::tests::counts_add_up_by_heap_and_submissionchecks per-heap sums, the most per submission, the summary text and the sort order.victory-gpu tests (arm64), Windows clippy and
cargo xtask policypass. One unrelated flake showed up once and passed on two reruns:texture_tests::a_texture_uploaded_blank_is_probed_at_each_submission, under a full parallel run. It shares the global title with other tests.@LakshanSivakumar on GitHub · 2026-11-26 18:09 UTC · original
Merged together with #127, which builds on it, thanks.