Indirect batches: mode 4 keeps a batch open past heap-reading programs (VICTORY_INDIRECT_BATCH=4; from mandy) #553

Open
voiceovarian1-max wants to merge 2 commits from upstream-pr/553 into main
voiceovarian1-max commented 2026-12-03 09:44:26 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T09:44:26Z.


Stacked on #551; only the top commit belongs here.

VICTORY_INDIRECT_BATCH=4 (the launcher sets it instead of 2): a program that picks buffer views
from the heap by an index it computes keeps the batch of indirect records open when every store
it makes goes through views its bind declares (stores_declared; VICTORY_BATCH_HEAP_READS on,
0 ends the batch at any such program).

Ported from ProjectLeonida/mandy 19d3484d7, 955e7d9cf and 120ffc2a4 (NotRexed), 3df83de57;
GPL-3.0-or-later. mandy, RTX 4060 Ti: 175 to 186 batch passes a frame against 928, the frame's
median -2.11 ms, the card busy -3.67 ms. Not ported: mode 3, BATCH_TEXTURE_DISPATCHES and the
batch pass speed-up.

What is in it

  • crates/victory-gpu/src/draw.rs | 218 +++++++++++++++++++++++++++--
  • crates/victory-gpu/src/host.rs | 64 +++++++++
  • crates/victory-gpu/src/pipeline.rs | 272 ++++++++++++++++++++++++++++++++++++-
  • crates/victory-gpu/src/shadow.rs | 10 ++
  • scripts/play-foxhound.ps1 | 2 +-

Tested

  • cargo check --workspace --tests --locked on main 7dbcdcb (with the PR below it): no errors, no warnings.
  • In the game: only together with the other ports from mandy, in one combined build (results to follow here before this leaves draft).

Not tested

  • This change on its own in the game; AMD and Intel cards; the Series X profile.

AI use

Claude Code with Claude Opus 5.5 ported this from mandy, resolved its conflicts with this tree and wrote this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5623941889 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/553). Originally posted by [voiceovarian1-max](https://github.com/voiceovarian1-max) on 2026-12-03T09:44:26Z. --- Stacked on #551; only the top commit belongs here. VICTORY_INDIRECT_BATCH=4 (the launcher sets it instead of 2): a program that picks buffer views from the heap by an index it computes keeps the batch of indirect records open when every store it makes goes through views its bind declares (stores_declared; VICTORY_BATCH_HEAP_READS on, 0 ends the batch at any such program). Ported from ProjectLeonida/mandy 19d3484d7, 955e7d9cf and 120ffc2a4 (NotRexed), 3df83de57; GPL-3.0-or-later. mandy, RTX 4060 Ti: 175 to 186 batch passes a frame against 928, the frame's median -2.11 ms, the card busy -3.67 ms. Not ported: mode 3, BATCH_TEXTURE_DISPATCHES and the batch pass speed-up. **What is in it** - `crates/victory-gpu/src/draw.rs` | 218 +++++++++++++++++++++++++++-- - `crates/victory-gpu/src/host.rs` | 64 +++++++++ - `crates/victory-gpu/src/pipeline.rs` | 272 ++++++++++++++++++++++++++++++++++++- - `crates/victory-gpu/src/shadow.rs` | 10 ++ - `scripts/play-foxhound.ps1` | 2 +- **Tested** - `cargo check --workspace --tests --locked` on `main` 7dbcdcb (with the PR below it): no errors, no warnings. - In the game: only together with the other ports from mandy, in one combined build (results to follow here before this leaves draft). **Not tested** - This change on its own in the game; AMD and Intel cards; the Series X profile. **AI use** Claude Code with Claude Opus 5.5 ported this from mandy, resolved its conflicts with this tree and wrote this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
voiceovarian1-max commented 2026-12-03 10:04:24 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T10:04:24Z.


Combined test of this PR with #521, #543 and #544-#556, all merged onto main 7dbcdcb (branch fox-all of voiceovarian1-max/foxhound):

  • RTX 4070 Ti 12 GB (driver 617.14), i7-14700K, 32 GB, Windows 11 Pro 26300; release.
  • cargo test --workspace --locked -- --test-threads=4: 1,415 passed, 0 failed, 50 ignored (29 binaries), no SKIPPED.
  • Retail title, Series S profile, DLSS Balanced, 60 fps limit, keys pressed by the layer only (VICTORY_KEYS, no input from the PC): window scene 38-42 fps against 34-37 for main on the same boot; no device removal, no crash; a burst of 67 pictures showed no one-picture flicker of the character's clothes.
  • Not tested: each PR alone in the game; AMD and Intel; the Series X profile; long play.

Tested by Claude Code with Claude Opus 5.5 on the hardware named.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7374693445 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/553#issuecomment-7374693445). Originally posted by [voiceovarian1-max](https://github.com/voiceovarian1-max) on 2026-12-03T10:04:24Z. --- Combined test of this PR with #521, #543 and #544-#556, all merged onto `main` 7dbcdcb (branch fox-all of voiceovarian1-max/foxhound): - RTX 4070 Ti 12 GB (driver 617.14), i7-14700K, 32 GB, Windows 11 Pro 26300; release. - `cargo test --workspace --locked -- --test-threads=4`: 1,415 passed, 0 failed, 50 ignored (29 binaries), no `SKIPPED`. - Retail title, Series S profile, DLSS Balanced, 60 fps limit, keys pressed by the layer only (`VICTORY_KEYS`, no input from the PC): window scene 38-42 fps against 34-37 for `main` on the same boot; no device removal, no crash; a burst of 67 pictures showed no one-picture flicker of the character's clothes. - Not tested: each PR alone in the game; AMD and Intel; the Series X profile; long play. Tested by Claude Code with Claude Opus 5.5 on the hardware named.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/553:upstream-pr/553'
git switch 'upstream-pr/553'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/553'
git switch 'upstream-pr/553'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/553'
git switch 'upstream-pr/553'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/553'
git switch 'main'
git merge --squash 'upstream-pr/553'
git switch 'main'
git merge --ff-only 'upstream-pr/553'
git switch 'main'
git merge 'upstream-pr/553'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
readmet3xt-lab/foxhound!553
No description provided.