Skip to content

GPU: opt-in ordered single-group indirect batches - #1412

Open
spk-c wants to merge 3 commits into
fxceless:mainfrom
spk-c:submit/ordered-indirect-batches
Open

spk-c wants to merge 3 commits into
fxceless:mainfrom
spk-c:submit/ordered-indirect-batches

Conversation

@spk-c

@spk-c spk-c commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

AI-assisted selective adaptation of Kelvaroq 0051 via spk-c#42; source attribution in docs.

VICTORY_INDIRECT_BATCH=1 selects the existing counted-table clamp window in single 64-lane-group mode for homogeneous read-only Draw/DrawIndexed records, excluding count buffers, mesh and compute dispatches. Each execution gets its own entry, including repeats. Explicit ordering boundaries close the batch; incompatible cases fall back. The opt-in port additionally checks the actual source buffer extent. Default behavior is unchanged.

Unlike #1171's run gathering and #1313's prelude gather accounting fix, this is a narrow ordered counted-window mode, not a replacement for either. CPU admission/capacity and WARP repeated-record budget tests included; original fork CI passed. Fresh upstream CI and hardware retest pending. No gameplay speedup claim.

Baseline dependency: includes the existing maintainer patch #1357 (original commit 450ed9b) to repair the upstream 512 KiB asset-policy failure. No limit or security check changed. This shared dependency will disappear from the diff when merged normally.

claude and others added 3 commits November 26, 2026 18:04
…the asset policy's 512 KiB limit

The check job fails on main: crates/victory-gpu/src/host.rs (528,954 bytes)
and crates/victory-shader/src/emit/lower.rs (535,588 bytes) are over the
asset policy's 512 KiB limit (fxceless#1342).

Only #[cfg(test)] modules move, verbatim apart from losing one level of
indentation; module names and paths are unchanged, no non-test code changes.

- host.rs: its eight test modules (tests, relay_tests, grouped_tests,
  late_tests, trail, spare, batch, queue2_tests) move to host/<name>.rs,
  the layout profile.rs and profile/tests.rs already use. 492,495 bytes.
- lower.rs: mod tests moves to emit/lower_tests.rs, declared with
  #[path = "lower_tests.rs"] as in fxceless#1322. 512,559 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015kFDn6faAxnJwPKPwiCnj1
AI-assisted adaptation of Kelvaroq 0051 via fork #42; includes upstream fxceless#1357 as separate baseline dependency.
@spk-c
spk-c marked this pull request as ready for review November 27, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants