gpu(draw): batch table descriptor copies/retirements and hoist list hotpath lookups #2813
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!2813
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2813"
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?
@Nosheboo on GitHub · 2026-11-29 17:37 UTC · original
Nosheboo:port/foxhound-table-batch-and-draw-hotpath→main· +565 −162 · 4 files · 1 commits · openMotivation
On upstream
55d06914, baseline profiling measures178.4–184.9 msacross30,689–33,221list::thincalls per logging window alongside heavy per-draw descriptor creation/copy/retirement churn and redundant command-list hashing/lookup work.Changes
crates/victory-gpu/src/descriptor/host.rs:TableBatchwith bounded TLS reuse (TableBatch::trim_for_reusecapping retaineddsts/srcs/retiredvector capacities at512before returning to thread-local storage),slot_tabled_in,replace_kept/replace_kept_ref,make_at_into(preservingneutral_forstand-ins),make_listed_into,flush_table_batch(usingCopyDescriptorsSimplefor 1 descriptor andCopyDescriptorsfor multi-entry batches plus batched resource retirement),make_null_into, andconstant_raw_at_into.table_batch_copies_and_retires_in_one_flushandtable_batch_trim_for_reuse_caps_oversized_capacity.crates/victory-gpu/src/host.rs&crates/victory-gpu/src/list.rs:HostList::list6,AddressHashonHostList::twins/States/Deferred::textures, andHostList::transition_copy/ensure_state_copy(preservingalias_trackerbarriers).crates/victory-gpu/src/draw.rs:prepare/prepare_forto returnOption<&'static HostPipeline>.TABLE_BATCH+flush_table_batchand trims oversized scratch viabatch.trim_for_reuse()before returning to TLS, useslist6/slot_tabled_in/ensure_state_copy, removes deadlisted_view, and defersselected.binary_search(&k)into lazy checks in both shared-table and fresh-table paths.Attribution
Ported from FoxHound v0.8.1:
readmet3xt-lab/foxhoundcommit6c67166d(PR #36, authorDilim0n,GPL-3.0-or-later). Commit trailers and source comments creditDilim0nandreadmet3xt-lab.Verification
upstream/main(41adb551):git diff --check upstream/main..HEADclean; trailers intact (Co-authored-by: Dilim0n,Co-authored-by: readmet3xt-lab);cargo xtask policy --stagedpassed.cargo clippy -p victory-gpu --no-deps --all-targets --lockedand--all-featureswith-W clippy::undocumented_unsafe_blocks:0warnings in changed hunks (pre-existing workspace warnings onupstream/mainlive outside this PR).cargo test -p victory-gpu --lib --locked descriptor:: -- --test-threads=1->106 passed; 0 failed; 2 ignored(includestable_batch_trim_for_reuse_caps_oversized_capacity)cargo test -p victory-gpu --lib --locked draw:: -- --test-threads=1->25 passed; 0 failed; 2 ignoredcargo test -p victory-gpu --lib --locked list:: -- --test-threads=1->20 passed; 0 failed; 0 ignoredCouncil review
Rounds: 5
gpt-6-luna,xhigh)gpt-6-luna,xhigh)gpt-6-luna,xhigh)Created in T3 Code (reviewed by Council: 3× gpt-6-luna on xhigh).
f813e4cf22to8f84bd9084View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.