Repository navigation
GPU: batch requested indirect prefixes in one prelude (opt-in) - #1001
Demon12377 wants to merge 11 commits into
Conversation
- Increase `WINDOW_MOST` to 128 for indirect draw clamping - Support arbitrary buffer offsets in indirect shader - Expand staging buffer pool size limit to 64 MiB - Add robust fault handling tests and guarded write support
…pt-in and restore lint checks
…ppy warning after sync
Retain true upstream ancestry; final combined draw code is restored in the next commit.
… retain new diagnostics and lint checks
|
Independent native D3D12 result for All nine I ran
The 256-call case was the most variable (median paired ratio 6.12× with inline first and 4.40× with batch first). Batching reduced GPU time for 16, 64, and 256 calls in every process. These are synthetic compute-consumer timings including the prelude. Graphics/mesh workloads and in-game frame times remain open. Tested and summarized with Codex. |
Indirect 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 3973179 is 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 0b0074e tree; the ordinary clamp shader is unchanged in 3973179. Validation below was rerun after integrating 3973179.
Validation of the current combined tree:
--all-targets, with and without--all-features,--locked -- -D warnings) pass.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.