Textures and lists: copy-back, partial writes, keep by list, entries once (from mandy) #554

Open
github-bot wants to merge 3 commits from github-bot/gh-554 into main AGit
Owner

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:44 UTC · original
voiceovarian1-max:port-shared → main · +1540 −94 · 13 files · 3 commits · open

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

Four switches from the projects mandy carries, all on (0 turns each off):

  • VICTORY_COPY_BACK (texback.rs): copies put back into title memory as the list closes;
  • VICTORY_PARTIAL_WRITTEN: a write the guards see makes a partly mapped texture read again the
    next frame, not every 30th (after trustno1-coder/VIctory-NVIDIA dbba4ad7);
  • VICTORY_KEEP_BY_LIST: a list keeps its dynamic slots' resources once, not each slot its own
    (after ReZOnGithub/VIctory-lap 1641cb6);
  • VICTORY_ENTRY_ONCE: a table entry a list brought up to date for a shader is not done again
    while the list's epoch stands (after ReZOnGithub/VIctory-lap 1d52e85).

Ported from ProjectLeonida/mandy 804280d80, 8fb974878 and 9899a9801 (NotRexed), with
voidopcode/vilocity ee93826; GPL-3.0(-or-later). The texture copy-back test is adjusted as
in mandy (the texture is in the copy-source state already when its copy went back).

What is in it

  • crates/victory-gpu/src/descriptor/host.rs | 73 +++++++++++++
  • crates/victory-gpu/src/draw.rs | 103 +++++++++++++++++-
  • crates/victory-gpu/src/host.rs | 46 +++++++-
  • crates/victory-gpu/src/list.rs | 13 +++
  • crates/victory-gpu/src/resource.rs | 17 +--
  • crates/victory-gpu/src/texback.rs | 169 +++++++++++++++++++++++++++---
  • crates/victory-gpu/src/texture.rs | 55 +++++++++-

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

**@⁠voiceovarian1-max** on GitHub · 2026-12-03 09:44 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/554) `voiceovarian1-max:port-shared` → `main` · +1540 −94 · 13 files · 3 commits · open Stacked on #553; only the top commit belongs here. Four switches from the projects mandy carries, all on (0 turns each off): - VICTORY_COPY_BACK (texback.rs): copies put back into title memory as the list closes; - VICTORY_PARTIAL_WRITTEN: a write the guards see makes a partly mapped texture read again the next frame, not every 30th (after trustno1-coder/VIctory-NVIDIA dbba4ad7); - VICTORY_KEEP_BY_LIST: a list keeps its dynamic slots' resources once, not each slot its own (after ReZOnGithub/VIctory-lap 1641cb6); - VICTORY_ENTRY_ONCE: a table entry a list brought up to date for a shader is not done again while the list's epoch stands (after ReZOnGithub/VIctory-lap 1d52e85). Ported from ProjectLeonida/mandy 804280d80, 8fb974878 and 9899a9801 (NotRexed), with voidopcode/vilocity ee93826; GPL-3.0(-or-later). The texture copy-back test is adjusted as in mandy (the texture is in the copy-source state already when its copy went back). **What is in it** - `crates/victory-gpu/src/descriptor/host.rs` | 73 +++++++++++++ - `crates/victory-gpu/src/draw.rs` | 103 +++++++++++++++++- - `crates/victory-gpu/src/host.rs` | 46 +++++++- - `crates/victory-gpu/src/list.rs` | 13 +++ - `crates/victory-gpu/src/resource.rs` | 17 +-- - `crates/victory-gpu/src/texback.rs` | 169 +++++++++++++++++++++++++++--- - `crates/victory-gpu/src/texture.rs` | 55 +++++++++- **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)
Four switches from the projects mandy carries, all on (0 turns each off):
- VICTORY_COPY_BACK (texback.rs): copies put back into title memory as the list closes;
- VICTORY_PARTIAL_WRITTEN: a write the guards see makes a partly mapped texture read again the
  next frame, not every 30th (after trustno1-coder/VIctory-NVIDIA dbba4ad7);
- VICTORY_KEEP_BY_LIST: a list keeps its dynamic slots' resources once, not each slot its own
  (after ReZOnGithub/VIctory-lap 1641cb6);
- VICTORY_ENTRY_ONCE: a table entry a list brought up to date for a shader is not done again
  while the list's epoch stands (after ReZOnGithub/VIctory-lap 1d52e85).

Ported from ProjectLeonida/mandy 804280d80, 8fb974878 and 9899a9801 (NotRexed), with
voidopcode/vilocity ee93826; GPL-3.0(-or-later). The texture copy-back test is adjusted as
in mandy (the texture is in the copy-source state already when its copy went back).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 09:46:26 +00:00
github-bot force-pushed github-bot/gh-554 from 1538af37dc to e5289f0e7b 2026-12-03 09:51:51 +00:00 Compare
Author
Owner

@⁠voiceovarian1-max on GitHub · 2026-12-03 10:04 UTC · original

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.

**@⁠voiceovarian1-max** on GitHub · 2026-12-03 10:04 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/554#issuecomment-7374694001) 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 has changes conflicting with the target branch.
  • crates/victory-gpu/src/shadow.rs
  • scripts/play-foxhound.ps1
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.
git fetch -u origin '+refs/pull/554/head:github-bot/gh-554'
git switch 'github-bot/gh-554'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-554'
git switch 'github-bot/gh-554'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-554'
git switch 'github-bot/gh-554'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-554'
git switch 'main'
git merge --squash 'github-bot/gh-554'
git switch 'main'
git merge --ff-only 'github-bot/gh-554'
git switch 'main'
git merge 'github-bot/gh-554'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.