GPU/draw: reduce CPU work when preparing descriptor tables #1192
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1192
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1192"
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?
@nicolasveilleux on GitHub · 2026-11-25 23:24 UTC · original
nicolasveilleux:perf/descriptor-preparation→main· +217 −52 · 2 files · 3 commits · openWhat changes
Descriptor contents, cache keys, fallback paths and GPU commands are unchanged. The expected benefit is less CPU work while recording draws and dispatches; no gameplay FPS gain has been measured.
Validation
On Windows 11 with an RTX 2070 Super, using public code and synthetic test data only, release build with diagnostics:
cargo test -p victory-gpu --lib --release --offline --locked --features diagnostics table_: 3 passed.cargo test -p victory-gpu --lib --release --offline --locked --features diagnostics descriptor::: 28 passed.git diff --check: clean.@UwUCammie on GitHub · 2026-11-25 23:52 UTC · original · edited 2026-11-26 00:04 UTC
I tried this with #927. Its half-precision buffer views can lie past the range's first declared descriptor, so they still need to contribute to the table length after indexed expressions move into the stage layout. Otherwise the slot containing the half view can end up outside the fresh table.
I pushed the combined three commits on top of #927. The path with zero or one expression still avoids allocating when there are no extra half views. The slot-set, inline offset and layout tests passed, and the existing
a_fresh_table_holds_the_half_views_past_its_range_startsregression passed under Wine 11.22 with RADV 26.3.1 on the RX 7900 XT. This is useful if both PRs land.I also tried an integration build with both changes and our other renderer patches. With scripted input enabled the run ended in device loss 95.7 seconds into startup, before the first-room timing window. I excluded it from the performance results. That run does not isolate the cause. The synthetic compatibility test above passed.
@alpz1000 on GitHub · 2026-11-26 05:09 UTC · original
I built
cee1b7dinto a local Windows diagnostics build and ran it on an i5-8400, RTX 3060 12 GB (610.88), 32 GB RAM. Both builds used the same local base and settings, the same stationary Series S checkpoint, and separate copies of the same initial pipeline library. The candidate adds only this PR and the merge resolution that retained the base's diagnostic counters.I selected windows with 4,250–4,750 draws and under 1 ms of pipeline waiting. FPS and p90 include long frames. Recording time sums all recording threads, so the 18 ms reduction does not imply an 18 ms change in frame time. This was one run per build. It shows lower recording time, with no gameplay FPS gain in this sample.
In the integrated tree,
cargo test --profile diag --locked -p victory-gpu --features diagnostics --lib table_ -- --test-threads=1passed 3/3, and the correspondingdescriptor::filter passed 30/30. AI-assisted test and write-up.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.