GPU upload staging: reuse retired buffers before allocating a >1 GB submission snapshot #1383
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#1383
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 18:30 UTC · original
Measured on RTX 5070 Ti, Series X, 1440p DLSS Quality, texture catch-up on, same save, same release executable on both sides, identical precompiled shader and host pipeline seeds. Tested on
f4608f0c; host/send.rs is unchanged on main93008750. This is an opening allocation finding, not an FPS benchmark.host/send.rsrequires one contiguous upload resource forsend::take. At the opening burst two retired upload blocks totalling 264 MiB were already free; neither could satisfy the whole request. In two same-binary A/B pairs both sides already right-sized an unretainable request (no power-of-two slack); only segmented staging changed.Each segmented run filled the two retired blocks and allocated only the remainder. Live capacity counts the spare pool, not whole-process commit or physical residency. Payloads differ between runs. During a separate visual A/B the observer saw the same rendering and perceived less hitching; no measured sustained FPS claim.
Implementation tested locally: for an oversized submission, keep each destination buffer’s bulk ranges and scatter pairs together in one source block; pack groups into already-retired blocks and allocate just the remaining bytes. Rebase offsets to the selected block, use it for CopyBufferRegion and rebind the scatter shader source when the block changes. Keep all blocks on the original submission until the existing retirement point. No changes to dirty-range selection, copied bytes or fence order. If comparing with #1345, this targets allocation/reuse, not planner passes.
Release build and size/offset tests passed; game runs reached retirement. Still needs byte-exact GPU readback of mixed bulk/scatter updates across blocks and longer-session testing before enabling by default.
@github-actions[bot] on GitHub · 2026-11-28 18:30 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@NotADonky43 on GitHub · 2026-11-28 18:34 UTC · original
This is a runtime allocator change, not a crash report. Here is the source-only patch for review, based on
93008750, with the profiling instrumentation removed. Save the diff andgit applyit. The oversized allocation is right-sized;VICTORY_STAGE_SEGMENTS=1additionally enables reuse across retired blocks. The release build and focused offset regression pass on this extraction. The game A/B above was on the instrumented version; mixed bulk/scatter GPU readback parity is still outstanding. No game files needed to build or run the offset test.Runtime diff (two files)
@AkshatPal2007 on GitHub · 2026-11-28 18:36 UTC · original
i am working on this
@NotADonky43 on GitHub · 2026-11-28 18:44 UTC · original
Superseded by #1391. The runtime change, test and review now live in that PR; closing this duplicate report, not marking the change merged.