Avoid unused VRAM slack for oversized COPY-queue transfers #1414
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!1414
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1414"
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?
@NotADonky43 on GitHub · 2026-11-28 19:23 UTC · original
NotADonky43:perf/upq-bounce-size→main· +58 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTCThe optional COPY queue accepts up to 512 MiB per transfer, but retains at most 256 MiB of free slots. Above that free-pool limit, power-of-two rounding buys no reuse. Allocate exactly the requested width for these transfers and release the unretainable slot outside the queue mutex after DIRECT completion. No changes to gate thresholds, fence ordering or reusable size classes. This is independent of #1391 (this changes the GPU destination on COPY, not the CPU upload source).
On an RTX 5070 Ti with D3D12 diagnostics enabled, the isolated 257 MiB transfer regression on main
32ecacfafailed on actual resource width: 536870912 vs 269484032 bytes. The patched run passed, including fenced readback at both ends and checking the oversized slot was not retained. Four regular copy-queue tests and the release build also passed. 255 MiB less requested VRAM capacity for this transfer, not measured DXGI residency, a game-wide reduction or an FPS claim. No game assets required.