GPU: batch requested indirect prefixes in one prelude (opt-in) #1001
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!1001
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1001"
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?
@Demon12377 on GitHub · 2026-11-25 15:35 UTC · original
Demon12377:perf/ordered-indirect-prefix→main· +2183 −312 · 12 files · 11 commits · openIndirect calls switch from drawing to compute and back for each argument clamp. With
VICTORY_INDIRECT_BATCH=1(off by default), an actual prefix of up to 256 nonwriting, single-record draw/indexed/mesh calls is prepared in one native prelude. Independent prepares share a binding with no inter-prepare barriers; one final group charges the original list budget in call order. Consumers keep their own pipeline and root state.Latest sync: upstream
3973179is an ancestor of this branch. Its new pipeline meters, joined submissions, copy-back own-view fixes, monitorx/mwaitx counters, spread experiment and WINDOW_JUMP diagnostics are preserved. Jump/read state is tracked per cached window when combined with the existing eight-window cache.This proposal includes and supersedes #889, including its repaired coalesced hash (paired sign-bit regression), disjoint window scratch, guarded copy repairs and staging reuse. It includes current upstream
39731795d2d5117e6f90939273ee130428d28137, preserving the frame log, card meter, driver-watch fallback and latest plain-copy/affinity changes.The new prefix:
Measured synthetic WARP timestamps on Windows/Rust 1.98.1, debug layer/GBV/card meter/serial timing off, five warmups and ten samples. Both modes assert the same weighted work every execution; timestamps include the prelude and consumers:
Short prefixes can cost more. These are software-adapter compute-consumer measurements, not game FPS or native mesh/graphics results. A comparable scene benchmark is still needed; no 60-FPS claim is made. Upstream's former 6.0 -> 8.9 FPS comparison was withdrawn in
0b0074e.The table above was measured on the combined
0b0074etree; the ordinary clamp shader is unchanged in3973179. Validation below was rerun after integrating3973179.Validation of the current combined tree:
--all-targets, with and without--all-features,--locked -- -D warnings) pass.3973179. This is recorded as a failure, not a passed/skipped check.The excluded depth_bounds_pipeline_loads_and_filters_draws test has a previously reproduced upstream E_INVALIDARG at root-signature creation on this machine. Shader Model 6.6/game validation was not performed here. Follow-on work remains for prefixes after an in-list producer, physical-page coherence and translated shader cost. Related budget-order proposals #864/#899 address a different grouping boundary.
AI-assisted implementation and source review; local tests use synthetic data only. No game assets or derived fixtures.
3973179into the contribution 048bb2ce1e3973179; retain new diagnostics and lint checks fe30da8ef0View 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.