Opt-in Ryzen descriptor and snapshot optimizations with per-frame CSV capture #1560
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!1560
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1560"
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?
@biega-dev on GitHub · 2026-11-28 21:44 UTC · original
biega-dev:pr/ryzen-descriptors-snapshots-frame-log→main· +245 −9 · 4 files · 1 commits · merged 2026-11-29 08:16 UTCWhat it changes
On a Ryzen 7 3700X and an RTX 3070, the opening cutscene can leave the GPU waiting while the CPU prepares submissions. This PR ports two CPU-side experiments to current
mainand adds per-present data to help reviewers compare frames with similar draw counts. Both optimizations are opt-in throughVICTORY_RYZEN_PREP=1.VICTORY_BENCH_CSVto a new file path to record one row per presentation with elapsed time, interval and draw-count delta. This works independently of the optimization switch. An existing capture is preserved.How it was tested
Hardware and profile. Ryzen 7 3700X, RTX 3070 8 GB, Windows 10 22H2. The game measurements below used the Series S profile, DLSS Quality from 1280 × 720 to 1920 × 1080 and frame generation off.
Component benchmarks on this PR. Each benchmark alternates the order of the two paths, discards the first round and reports the median of 11 measured rounds.
Reproduce both measurements with
cargo test --release --locked -p victory-gpu --lib bench_ryzen_ -- --ignored --nocapture --test-threads=1.What the two days of game testing showed. Earlier integrated builds had mixed results. In one comparison the corridor improved from 10.79 to 11.72 rendered FPS while the cell fell from 10.43 to 9.66 FPS. A later opening-cutscene trace recorded 80.9 ms per frame on CPU submission preparation, including 54.8 ms inside the command-list steps. The RTX had no work queued for 38.5 ms per frame while the submitting thread was active. Those builds included additional changes and the scene varied between runs. The numbers above establish the cost of two operations on this PR. A matched cutscene A/B on this exact commit is still needed to establish the effect on rendered FPS and image completeness. The 30 FPS target remains open.
Correctness. The three new regression tests passed on the PR head. They cover equivalence with the full descriptor scan, unaligned snapshot copies and guard bytes, and CSV timing, draw deltas and preservation of an existing capture.
cargo build --release --locked -p victory.victory-gpulibrary suite ran twice, once withVICTORY_RYZEN_PREP=0and once withVICTORY_RYZEN_PREP=1. 553 passed, 0 failed, 45 ignored in each run. The two opt-in benchmarks above were run separately.ambient::tests::the_passes_buildat Shader Model 6.5. The same stop reproduced on unmodifiedd4b5d51. For the full runs, the test executable exported the Agility SDK version and path and loaded the app-local Agility 614 runtime.Checked for overlap
mainalready handles Direct3D 12 Agility selection on Windows 10. This PR uses that implementation.