perf(host): honor VICTORY_WAIT_RESIDENT=textures for buffer pools and coalesce mapped() waits #1553
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!1553
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1553"
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?
@qlfu on GitHub · 2026-11-28 21:37 UTC · original
qlfu:pr/wait-resident-buffers-and-mapped-coalesce→main· +188 −63 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCSummary
ot_resident\ /
esident\ / \mapped\ to the \uffer_*\ helpers. Both allocate plain buffers (\D3D12_RESOURCE_DIMENSION_BUFFER\ / \D3D12_HEAP_FLAG_ALLOW_ONLY_BUFFERS), not textures, so under \VICTORY_WAIT_RESIDENT=textures\ they should follow the same policy as \upload_buffer, \shared_buffer_now, \mapped_card_buffer, and \uav_buffer.
\ in \host.rs\ with monotoniceeded\ / \done\ ticket counters (\AcqRel\ / \Acquire\ / \Release).
Verification
@amazedturnip on GitHub · 2026-11-29 05:38 UTC · original
Tested on 9800X3D + RTX 5070 Ti 16 GB with VICTORY_WAIT_RESIDENT=textures in a combined perf stack across 20+ min sessions. Zero residency errors or corruption; frame pacing improved noticeably with buffer-pool MakeResident stalls cut out.
a685c3a3e9toa0acea9049@qlfu on GitHub · 2026-11-29 10:14 UTC · original
Rebased onto current \main\ (\
829188e9): dropped the \writeback_upload_buffer\ hunk that already landed upstream and wired \MappedBarrier\ around the shared \ASIDE\ copy queue used by \mapped()\ and \with_copy_queue_sync(). Verified with \cargo clippy, \mapped_barrier\ unit tests, and a clean 90s gameplay run (\mapped()\ total wait 449.2 ms -> 167.0 ms, 6 coalesced, 0 WARNs/0 ERRORs).