GPU: speed work for Radeon and 32 GB hosts (buffer reuse, burying thread, fills through placed copies) + measured switches #1044
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!1044
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1044"
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?
@imad7x on GitHub · 2026-11-28 11:59 UTC · original
imad7x:amd-speed-patches→main· +2831 −57 · 22 files · 22 commits · open22 commits on top of
63b902f: speed work for a Radeon card on a 6-core CPU with 32 GB of RAM. Three changes are on by default and each has a switch back; the rest are live switches and counters that are off by default. Please take what is useful: I can split this into smaller pull requests or drop the switches.Tested on
One machine only: i5-12500, 32 GB DDR4-3200, RX 7900 GRE 16 GB, Windows 11, 1440p output. Upscaling and frame generation 2x go through OptiScaler. Every number below is the rendered frame time in the opening prison room (about 5,800 draws), not the open world. No NVIDIA card was tested.
On by default
VICTORY_FILL_THROUGH_PLACED=0victory-bury), handed over by a channelVICTORY_BURY_ASIDE=0reuse=0limited_host_ram()(32 GB): slow destroys 84 -> 12 a frame, frame about 53 -> 50 mslabprofileOver these changes the same scene went from about 57 ms to 45.6 ms on the older base (
959dcaf, native 1440p). On63b902fit runs 43.0 ms (23.2 fps) without ray tracing and 55 to 59 ms with it.Off by default (live switches read from
VICTORY_LAB_FILE)w: the title's fence waits are woken when the card answers. -0.4 ms while the card is the limit, nothing otherwise.p: the submitting thread (and with 2 its helpers) at priority "highest". About -1 ms withp=2.spin,once: the guards' lock. All threads' waits at it 58 -> 20 ms a frame; frame -0.3 ms, inside the noise.q: a refresh that copies nothing learns so with no lock taken. Refreshes on helper threads 8,500 -> 2,900 a frame; frame unchanged.seal: private ranges of 16 MB and more that stayed clean for 2 s are made read-only instead of asked about, by 64ths. Write-watch asking 11.6 -> 8.7 ms a frame with ray tracing; frame -0.5 ms because the card is the limit there. Three tests inwatch::seal_tests.gap,u,hot,own,wide,lists: measured slower or no gain. Kept only so the result can be reproduced.cyc,t,frames,g,h,nf,cut: counters, traces and the statistics lines used for the numbers above.What I found, in case it helps others
Not verified
cargo clippy -- -D warningswas not run locally. The branch was built withcargo checkand thelabprofile, and thewatch::module's tests pass.🤖 Generated with Claude Code
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 13:51 UTC · original
An NVIDIA run, since the PR says none was tested.
Setup: RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11 26300, native D3D12 (no OptiScaler: VIctory's own Streamline DLSS). Base:
63b902fplus a few local commits, with this PR merged (it merged cleanly). Default switches only, so the three on-by-default changes apply. README launcher defaults: Series X, native 1440p, DLSS Quality, no frame generation. Opening prison room, same save each time, a 90 s scripted walk. The card is GPU-bound and VRAM-full on this scene (no roommost of the run), so this is not where CPU savings show best.Frame lines from the log, every 5 s, counting only lines with ≥ 4,000 draws (the walk and cutscene, not the load):
ERROR(StreamlinepresentCommon() was not observed) appears in the baseline runs too.I'd be happy to repeat with the on-by-default changes switched off one at a time (
VICTORY_FILL_THROUGH_PLACED=0,VICTORY_BURY_ASIDE=0), if that helps you decide how to split the PR.@tippythetaidum on GitHub · 2026-11-28 18:26 UTC · original
One data point for the fill-through-placed commit alone (
e9bda4c), on NVIDIA. RTX 5080 + Ryzen 7 9800X3D, 32 GB, Windows 11 26200. It was cherry-picked onto63b902fwith #1014 and #393. Series X 2560x1440, DLSS Quality, frame generation off, indoors, the same save restored each run.I used one process and a local switch that turned
fill_through_placedoff every other 30 s, so both sides saw the same scenes. That gave 4 minutes, with 5-second frame lines cut at the switches:That's about -1.3 ms on the submitting thread here, no errors, and no visual difference seen. (This PC was paging during that run, so the absolute rates are low.) I didn't test the rest of the PR.
github-bot referenced this pull request2026-11-29 12:10:51 +00:00
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.