native: count the descriptor records remirrored at submission (VICTORY_TRACE_DESCRIPTORS) #119
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-26T17:24:32Z.
First 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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T18:09:51Z.
Merged together with #127, which builds on it, thanks.