Keep large buffers in VRAM and enable GPU-side in-place buffer operations #339
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!339
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-339"
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?
@XaviFortes on GitHub · 2026-11-26 17:30 UTC · original
XaviFortes:upstream/in-place-buffer-gpu-path→main· +54 −23 · 5 files · 5 commits · openSummary
card_stepscopy or fill eligible in-place buffers on the GPU. Allow placed copies to use in-place buffers and skip redundant CPU publication for in-place destinations.The first commit (
b2917b4in the fork) adds the placement and lifetime tracking required by the three follow-up fixes (4487275,5e6fec2,4c210de).Measurements
Tested and benchmarked in VIctory-RDNA on an RX 7900 XT with Series X at 4K output, using
VICTORY_PORT_BUFFERS=1andVICTORY_INPLACE=2. After thecard_stepsfix, 11 of the final 12 samples logged 0.0 ms of settle wait, compared with 0 of 11 before it. Both captures exited cleanly. These fork captures predate theplace_copyfollow-up. A controlled comparison is needed to measure the patch's frame-rate impact.Happy to adjust the style or split the changes if useful.
@HAL9000RELOADED on GitHub · 2026-11-27 14:23 UTC · original
A data point for this PR and #337 together on an RX 7900 XTX (RDNA3), driver 32.0.32015.7029, Windows 10 Pro 22H2 (19045), Rust 1.98.1 MSVC.
Setup:
014d52d+ #165 (Agility, needed on Windows 10), then the same + #337 (fb82170) + #339 (dfb83a8). Series X, 4K output,VICTORY_RENDER_SCALE=0.5, ports 1/2/5/6/7,VICTORY_PORT_BUFFERS=1 VICTORY_INPLACE=2,warm --usedfirst, warm caches, a 600 s run with the same scripted boat drive in the first boat mission. Numbers are means over the host frame lines with 3000-4999 draws.014d52d+ #165VICTORY_PORT_CONSTANTS_ORDER=0VICTORY_PORT_CONSTANTS_ORDER(about 4,200 clamped in-place executions a frame here). With it off the same tree runs at 37 ms, but trees and palms then pop again; #438 is about that cost.AI-assisted (Claude Code)
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.