Opt-in CPU-side frame pacing and per-frame savings (from VIctory-NVIDIA RDNA 4 work) #74
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!74
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-74"
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?
@420basedonwhat on GitHub · 2026-12-01 03:48 UTC · original
420basedonwhat:perf-from-victory-nvidia→main· +7 −0 · 1 files · 26 commits · closed without mergingFour small changes from my RDNA 4 tuning of VIctory-NVIDIA, ported to victory-amd. Each one is
behind its own switch and off by default, so nothing changes unless a switch is set.
What's in it
VICTORY_PRESENT_PACE=1victory-gpu/src/host.rsVICTORY_TEXTURE_HASH_RARE=1victory-gpu/src/texture.rsVICTORY_NULL_COPIED=1CopyDescriptorsSimpleinstead of being created in each slot.victory-gpu/src/descriptor/host.rs--profile perfCargo.tomlWhy
Frames came in uneven pairs (about 25 ms then 50 ms) when the game is CPU-bound, which feels
far worse than the average suggests. Even presents smooth that out for a small cost in average
frame rate. The other two cut per-frame CPU work on the submitting thread, which is the
bottleneck here.
Results
Test machine: Ryzen 7 5800X3D, RX 9070 XT, 32 GB RAM, Windows 10.
Settings:
b5942bb--profile perf)gain as approximate.
11–13% to 1–4% in an in-run A/B test.
Notes
VICTORY_PRESENT_PACE=1,VICTORY_TEXTURE_HASH_RARE=1andVICTORY_NULL_COPIED=1in the environment before startingvictory.exe.VIctory.ps1, I'm happy to follow up.could suit a launcher toggle.
cargo check -p victory-gpupasses. The four changes are in separate commits.🤖 Generated with Claude Code
@motioncsgo on GitHub · 2026-12-01 07:59 UTC · original
Tested this on an RX 7900 XTX (RDNA3) with a Ryzen 9 5950X and 64 GB of RAM. Settings: Series X, FSR 4 quality to 4K, RT on, the same save and spot each run. The build was v2026.11.30.8 with this PR merged (no conflicts), plus #72 and a few local patches. Single runs, so treat the numbers as rough.
Present pacing helps smoothness, not speed. All three switches on, against the same build without them:
VICTORY_TEXTURE_HASH_RARE=1made RT shadow artifacts worse. The speckled dark patches on characters and the ground around them were already there with RT on, but they got clearly worse with all three switches on. Of the three, only the rarer texture hashing should be able to change the picture, so we turned it off. We still runVICTORY_PRESENT_PACE=1andVICTORY_NULL_COPIED=1. A later pickup of texture writes seems to show up in the RT shadow path, so the rarer hashing may need an exception for textures the title writes every frame.Not tested:
--profile perf.Pull request closed