Reduce CPU work preparing GPU constant buffers #175
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/TaynanGT--Vice-Tay!175
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-175"
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?
@TaynanGT on GitHub · 2026-11-27 06:09 UTC · original
TaynanGT:perf/card-fill-planning→main· +228 −73 · 4 files · 3 commits · draftMost GPU-assisted steps on Series S are constant-buffer fills. The fill-only path uses a single dependency level and still checks the ordering of positioned copies. The complete dependency planner handles batches with writes.
Collect fill destinations while scanning the recorded list, index the in-flight ranges for fill-only batches, and group descriptor writes in their original order by worker. Claim adjacent small shadow refreshes together and accumulate their counters locally.
Both Clippy configurations and the focused card-step and worker tests passed. A standalone fixture with 7,488 fills in 36 groups measured the planner at 0.528 ms before and 0.075 ms after. The old and new planners agreed on 14,000 mixed inputs. The Series S playtest and video comparison are pending.
@NotADonky43 on GitHub · 2026-11-27 07:26 UTC · original
Independent RTX 5070 Ti / Series X check
Compared stock
bcbb7959with the two commits fromdfcddbbeapplied to the same tree (bd12c469locally). Both used the same saved-profile copy, stock placement and worker settings, 25,692 offline DXIL cache entries, and the same loaded D3D12 host library with 1,625 early keys. Both rendered heavy workloads and closed with exit 0 after their 240-second watchdog requested close; neither logged device loss or a refused host PSO.Medians of heavy telemetry windows (>1,000 draws/frame) with no in-process PSOs pending:
This is directional: the windows aren't scene-matched and no visual comparison was performed. The larger preparation improvement cannot be assigned to the fill planner alone, and the flight wait moved in the opposite direction. Peak shared/private memory was essentially unchanged in this pair.
The focused planner/host/recipe tests passed on both sides. In the documented relay test mode, the held-flight fixture checks the final bytes and completed 48/48 GPU copies on both builds; the PR's grouped-refresh test also passed. With GPU-based validation added, the stock fixture hit its scheduling-coverage assertion (5/48 went through the card, but its byte assertions passed), so that extra configuration does not demonstrate full relay-path coverage.
@TaynanGT on GitHub · 2026-11-27 07:41 UTC · original
@NotADonky43 Thanks for pinning the revisions and cache. The 48/48 held-flight copies give us a useful check on the bytes, and CPU prep fell from 198.4 ms to 125.6 ms in those heavy windows. Waiting for flights grew in the same pair. The next gameplay comparison should use a matched scene and recording so we can check the end-to-end gain and image together.
github-bot referenced this pull request2026-11-27 13:47:49 +00:00
github-bot referenced this pull request2026-11-27 13:47: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.