Three performance changes: binary-search the write-watch ahead ranges; opt-in descriptor copies as bytes and command-list reuse #469
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!469
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-469"
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?
@HungrySharkNet on GitHub · 2026-11-27 22:59 UTC · original
perf/ahead-lookup-desc-memcpy-list-cache→main· +280 −19 · 3 files · 3 commits · closed without mergingWhat
writes()searched the submission's "asked ahead" page ranges linearly on everyrefresh, so a submission's cost grew with the square of its range count. The
ranges are now sorted and merged once and looked up by binary search. Always on,
no behaviour change.
VICTORY_DESC_MEMCPY=1(off by default): a descriptor is copied asstepbytesof CPU-visible descriptor memory instead of
CopyDescriptorsSimple(1, ...). Theworld's draws do tens of thousands of these a frame.
VICTORY_LIST_CACHE=1andVICTORY_LIST_CACHE_FULL=1(off by default): a listwhose recorded stream was seen before is run again from its recorded host list
instead of being translated. The full variant holds the stream to the list's
close, so identical lists are found even when another list object recorded them.
Measurements
Ryzen 5 5600X (6c/12t), RTX 4070, 1080p, no DLSS, dense scene (~5k draws/frame):
frame (all threads).
5.4-6.0 ms per sampled sixteenth of the slots (about 10-15%).
artifacts in testing; the card stayed 61-65% busy and the submission queue did
not stall. The frame-time gain is limited: the repeated lists are mostly small,
so the translated call count barely moves.
The two switches default off; the default build is unchanged.
Notes
The command-list cache is the most experimental of the three. It reuses a closed
host list whose deferred steps run again on resubmission; it was tested on this
scene only. Happy to split it into its own PR if that is easier to review.
Pull request closed