GPU: preserve indirect draw budget order across groups #899
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!899
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-899"
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?
@avt0m4t48 on GitHub · 2026-11-25 12:15 UTC · original
avt0m4t48:fix/indirect-order-888→main· +57 −20 · 2 files · 1 commits · openRefs #888.
The clamp now dispatches 64-record groups in input order, with a UAV barrier between groups. It keeps the existing lane-ordered budget calculation within each group. The 128-record regression still requires draws 1 and 2 to survive, and reports the actual surviving indices if it fails.
This is a focused alternative to #864. It keeps main's per-group charge and ordered lane walk, and it preserves the legacy benchmark's six-constant single-dispatch path.
On Windows Server 2025 WARP, the original
f85101bfailed the reported assertion on attempt 2. At684eb7a(based ona253706), all 13 indirect tests passed, and seven additional isolated runs each kept records[1, 2]. The existing indirect benchmark ran on the Microsoft Basic Render Driver and exercised both recorder paths. Asset policy and the MSVC-target Rust check also passed. Baseline run · Patched runCalls with more than 64 records now record more dispatches and barriers, including count-buffer calls whose actual count is lower than their maximum. The existing draw window is capped at 64. Physical adapter and large-window performance were not measured. The tests use source-built fixtures.
AI-assisted using Codex.
@avt0m4t48 on GitHub · 2026-11-25 13:56 UTC · original
I measured the extra dispatches on Windows WARP at
684eb7aagainst the exact parallel clamp shader froma253706. The two variants ran in one process with the same outer barriers, 3,200 small synthetic draws, and the same budget storage. Each figure is the median over nine runs after warmup.At 128 and 512 records the recording increase was 0.01 ms at the benchmark's reporting precision. These measurements include the synthetic draws and come from the software adapter. Physical GPU timing, count-buffer stalls, and game frame time still need separate measurements. Benchmark source · Windows run
AI-assisted using Codex.
@nnonno91 on GitHub · 2026-11-25 21:10 UTC · original
Independent native D3D12 check on a GeForce RTX 5090 (617.42), Ryzen 7 9800X3D, Windows 11 build 26200, Rust 1.98.1. I compared this PR at
684eb7awith its parenta253706.The synthetic 128-record clamp test ran 20 times per adapter and revision. I adapted the test harness to select and report the adapter, require initialization, and print the surviving indices.
Every failure retained records
[64, 65]. Every run with the PR retained[1, 2]and passed the budget saturation and record-field checks.I also ran the existing indirect-draw benchmark on the RTX 5090 with 3,200 tiny synthetic draws and 128 records per clamp. These are medians of five alternating process runs per revision, with nine timed frames per case after warmup.
The one-record CPU-mapped case varied across runs (14.90–17.12 ms baseline, 14.96–18.01 ms with the PR). These measurements cover the synthetic draws and clamp work. Count-buffer behavior and in-game frame time remain open.
Tested and summarized with Codex.
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.