Textures: aliased R9G9B9E5 views copied texture to texture (VICTORY_ALIAS_DIRECT; from mandy) #548

Open
github-bot wants to merge 1 commit from github-bot/gh-548 into main AGit
Owner

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:43 UTC · original
voiceovarian1-max:port-alias-direct → main · +113 −19 · 2 files · 1 commits · open

With VICTORY_ALIAS_DIRECT=1 (the launcher sets it; off in the code), the copy behind an aliased
R9G9B9E5 view of an R32_UINT texture goes from texture to texture, texel for texel, instead of
through a buffer: one copy of each part instead of two, no buffer of the texture's size on the
card for each view, and two state changes fewer a copy.

Ported from ProjectLeonida/mandy 42ff296c0 (NotRexed), GPL-3.0-or-later. mandy measured the
frame 2.6 ms shorter on an RTX 4060 Ti.

What is in it

  • crates/victory-gpu/src/texture.rs | 130 ++++++++++++++++++++++++++++++++------
  • scripts/play-foxhound.ps1 | 2 +

Tested

  • cargo check --workspace --tests --locked on main 7dbcdcb: 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:43 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/548) `voiceovarian1-max:port-alias-direct` → `main` · +113 −19 · 2 files · 1 commits · open With VICTORY_ALIAS_DIRECT=1 (the launcher sets it; off in the code), the copy behind an aliased R9G9B9E5 view of an R32_UINT texture goes from texture to texture, texel for texel, instead of through a buffer: one copy of each part instead of two, no buffer of the texture's size on the card for each view, and two state changes fewer a copy. Ported from ProjectLeonida/mandy 42ff296c0 (NotRexed), GPL-3.0-or-later. mandy measured the frame 2.6 ms shorter on an RTX 4060 Ti. **What is in it** - `crates/victory-gpu/src/texture.rs` | 130 ++++++++++++++++++++++++++++++++------ - `scripts/play-foxhound.ps1` | 2 + **Tested** - `cargo check --workspace --tests --locked` on `main` 7dbcdcb: 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)
With VICTORY_ALIAS_DIRECT=1 (the launcher sets it; off in the code), the copy behind an aliased
R9G9B9E5 view of an R32_UINT texture goes from texture to texture, texel for texel, instead of
through a buffer: one copy of each part instead of two, no buffer of the texture's size on the
card for each view, and two state changes fewer a copy.

Ported from ProjectLeonida/mandy 42ff296c0 (NotRexed), GPL-3.0-or-later. mandy measured the
frame 2.6 ms shorter on an RTX 4060 Ti.

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:13 +00:00
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/548#issuecomment-7374690297) 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.
Author
Owner

@⁠tillo88 on GitHub · 2026-12-04 03:40 UTC · original

Replay-bench measurement on v0.8.3.5 with VICTORY_ALIAS_DIRECT=1: no measurable difference

Measured: PR head 05fa0f4 merged onto release v0.8.3.5 (5e44415), with VICTORY_ALIAS_DIRECT=1 set (off by default in the PR), 2 measured runs (after a warm-up run that is not counted), against 7 runs of v0.8.3.5 without the PR, same route (~6.5 min).

run fps CPU prep ms median ms p95 ms p99 ms frames > 100 ms
release, mean of 7 (range) 36.88 (36.45-37.24) 18.85 (18.34-19.38) 28.21 (27.80-28.70) 38.66 (38.14-39.23) 45.70 (44.78-46.46) 14.7 (12-17)
PR #548 run 1 36.95 19.95 27.85 37.90 45.38 14
PR #548 run 2 36.38 19.19 28.70 39.95 47.52 10

Mean fps: release 36.88, PR 36.67 (-0.6%): no measurable difference. CPU prep was 19.95 ms in run 1, above every release run (18.34-19.38), and 19.19 ms in run 2, inside the range; with 2 runs that is not a result. Run 2 had the highest p95 and p99 and the fewest frames over 100 ms; run 1 is inside the release's range on all three. The bench does not tell how often the aliased-view copy is taken on this route.

Crashes: none in the PR runs and none in the release runs (no host GPU failure, no device lost).

Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default play-foxhound.ps1 settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap.

Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.

**@⁠tillo88** on GitHub · 2026-12-04 03:40 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/548#issuecomment-7400338336) **Replay-bench measurement on v0.8.3.5 with `VICTORY_ALIAS_DIRECT=1`: no measurable difference** Measured: PR head `05fa0f4` merged onto release **v0.8.3.5** (`5e44415`), with `VICTORY_ALIAS_DIRECT=1` set (off by default in the PR), 2 measured runs (after a warm-up run that is not counted), against 7 runs of v0.8.3.5 without the PR, same route (~6.5 min). | run | fps | CPU prep ms | median ms | p95 ms | p99 ms | frames > 100 ms | |---|---|---|---|---|---|---| | release, mean of 7 (range) | 36.88 (36.45-37.24) | 18.85 (18.34-19.38) | 28.21 (27.80-28.70) | 38.66 (38.14-39.23) | 45.70 (44.78-46.46) | 14.7 (12-17) | | PR #548 run 1 | 36.95 | 19.95 | 27.85 | 37.90 | 45.38 | 14 | | PR #548 run 2 | 36.38 | 19.19 | 28.70 | 39.95 | 47.52 | 10 | Mean fps: release 36.88, PR 36.67 (-0.6%): **no measurable difference**. CPU prep was 19.95 ms in run 1, above every release run (18.34-19.38), and 19.19 ms in run 2, inside the range; with 2 runs that is not a result. Run 2 had the highest p95 and p99 and the fewest frames over 100 ms; run 1 is inside the release's range on all three. The bench does not tell how often the aliased-view copy is taken on this route. Crashes: none in the PR runs and none in the release runs (no host GPU failure, no device lost). Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default `play-foxhound.ps1` settings (Series X profile, 1440p, DLSS balanced, no frame generation), fullscreen, no frame cap. Measured unattended on a replay bench (same save, recorded controller input); numbers and text prepared with Claude.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/548/head:github-bot/gh-548'
git switch 'github-bot/gh-548'

Merge

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