Avoid unused VRAM slack for oversized COPY-queue transfers #1414

Manually merged
github merged 1 commit from github-bot/gh-1414 into main 2026-11-29 08:22:13 +00:00 AGit
Owner

@⁠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 UTC

The 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 32ecacfa failed 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.

**@⁠NotADonky43** on GitHub · 2026-11-28 19:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1414) `NotADonky43:perf/upq-bounce-size` → `main` · +58 −2 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC The 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 32ecacfa failed 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 19:24:51 +00:00
github manually merged commit b5c5bbb275 into main 2026-11-29 08:22:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1414
No description provided.