perf(gpu): optimize draw/heap tables, descriptor host heap, write-watch pruning, and pool caps #525
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/gamingwithhomie--larp!525
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-525"
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?
@ZerefDragnee1l on GitHub · 2026-12-06 01:53 UTC · original
ZerefDragnee1l:perf/gpu-hot-paths-and-memory-caps→main· +1106 −316 · 11 files · 1 commits · openSplits the non-pipeline GPU hot-path optimizations and pool/journal memory caps out of #408 onto current
main(preserving #376WindowsIdentityscoping and #452 NVIDIA 616.x handling inhost.rs).Summary
crates/larp-gpu/src/draw.rs):HostList::first_useperstrides_buffer, reuseScratchvecs, cachePicksspans/slots, and replacebytes.containswithBYTESbitflags.WHOLEunwatched copies per(frame, from, to)so wider ranges within the same frame still refresh (*from >= last_from && *to <= last_to), while narrower repeats only hold the copy for cross-queue ordering.crates/larp-gpu/src/descriptor/host.rs):Acquire/Releasefast-hit path inmake_from, 64-bit word bitset allocator in dynamic/release pools, batched COM retires, and no-opkeep()guard.crates/larp-gpu/src/watch.rs):MEM_FREEand stale unguardedMEM_MAPPEDview entries whenj.writtenexceedswritten_prune_at, keeping live/dirty/guarded pages (views,protected,clean,absent,hot, orwhen >= asked.min(ahead_asked)) intact.host.rs,allocators.rs,staging.rs,copyback/buffers.rs,slotfree.rs,overlay/perf.rs,capture.rs,stall.rs):DXGI_GPU_PREFERENCE_HIGH_PERFORMANCE) & triple buffering, gate diagnostics-only fields/CardClock, skip emptyKEPTlocks, use unstamped cursor inslotfree, cap idle allocators (64) and staging arenas (16), useO(N)select_nth_unstable_byinoverlay/perf.rs, and fast-path disabled capture/stall hooks.Verification
git diff --check-> cleancargo check -p larp-> exited 0 (larp-gpucompiled with 0 warnings)cargo test -p larp-gpu --lib -- --skip hardware_test --skip compare_listed_shader_resolution->32 passed; 0 failed; 5 ignored(2 filtered outfor skipped tests; 5 hardware/D3D12/SM6.6 tests ignored by#[ignore]), includingdescriptor::host::tests::dynamic_bitset_alloc_and_release,host::windows_pipeline_identity_uses_device_instance_across_luid_changes, andhost::copy_runs_tests::copy_runs_matches_reference_fuzz.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.