Textures: placed textures found again under shared locks first (VICTORY_PLACED_SHARDS; from mandy) #546

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

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:43 UTC · original
voiceovarian1-max:port-placed-shards → main · +117 −1 · 1 files · 1 commits · open

A placed texture found before is looked up again in one of several tables under a shared lock
first (resource.rs), instead of under one exclusive lock that every thread waits on. On by
default; VICTORY_PLACED_SHARDS=0 as before. What a table holds is kept for the run.

Ported from ProjectLeonida/mandy 3472e6e6a (NotRexed, LEONIDA_PLACED_SHARDS), GPL-3.0-or-later.

What is in it

  • crates/victory-gpu/src/resource.rs | 118 ++++++++++++++++++++++++++++++++++++-

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/546) `voiceovarian1-max:port-placed-shards` → `main` · +117 −1 · 1 files · 1 commits · open A placed texture found before is looked up again in one of several tables under a shared lock first (resource.rs), instead of under one exclusive lock that every thread waits on. On by default; VICTORY_PLACED_SHARDS=0 as before. What a table holds is kept for the run. Ported from ProjectLeonida/mandy 3472e6e6a (NotRexed, LEONIDA_PLACED_SHARDS), GPL-3.0-or-later. **What is in it** - `crates/victory-gpu/src/resource.rs` | 118 ++++++++++++++++++++++++++++++++++++- **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)
A placed texture found before is looked up again in one of several tables under a shared lock
first (resource.rs), instead of under one exclusive lock that every thread waits on. On by
default; VICTORY_PLACED_SHARDS=0 as before. What a table holds is kept for the run.

Ported from ProjectLeonida/mandy 3472e6e6a (NotRexed, LEONIDA_PLACED_SHARDS), GPL-3.0-or-later.

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:08 +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/546#issuecomment-7374689154) 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 06:12 UTC · original

Measured: release v0.8.3.5 (5e44415) against the same release with this PR merged on top (VICTORY_PLACED_SHARDS on, the PR's default; no other switch changed). Same save and recorded controller input on every run, ~6.5 min route (prison cutscene, cut to the plane, first part on the boat); each job starts with a warm-up run that is not counted. 9 release runs, 2 runs with the PR.

release (9 runs) #546 (run 1 / run 2)
fps, mean (range) 36.86 (36.45-37.24) 36.62 / 37.16
CPU prep, ms 18.88 (18.34-19.38) 18.85 / 18.78
median frame, ms 28.22 (27.80-28.70) 28.50 / 28.10
p95, ms 38.57 (37.74-39.23) 38.68 / 38.49
p99, ms 45.54 (44.78-46.46) 46.14 / 49.86
frames > 100 ms per run 14.2 (9-17) 20 / 13
  • No measurable difference in frame rate on this route: +0.1 % on the mean, both runs inside the release's range.
  • CPU prep is the same within run-to-run spread.
  • No crashes and no new layer warnings in either run.

On this CPU the lock this PR splits does not seem to be where the frame time goes on this route; a slower CPU or a texture-heavier scene may show it better.

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 06:12 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/546#issuecomment-7403187932) Measured: release **v0.8.3.5** (`5e44415`) against the same release with this PR merged on top (`VICTORY_PLACED_SHARDS` on, the PR's default; no other switch changed). Same save and recorded controller input on every run, ~6.5 min route (prison cutscene, cut to the plane, first part on the boat); each job starts with a warm-up run that is not counted. 9 release runs, 2 runs with the PR. | | release (9 runs) | #546 (run 1 / run 2) | |---|---|---| | fps, mean (range) | 36.86 (36.45-37.24) | 36.62 / 37.16 | | CPU prep, ms | 18.88 (18.34-19.38) | 18.85 / 18.78 | | median frame, ms | 28.22 (27.80-28.70) | 28.50 / 28.10 | | p95, ms | 38.57 (37.74-39.23) | 38.68 / 38.49 | | p99, ms | 45.54 (44.78-46.46) | 46.14 / 49.86 | | frames > 100 ms per run | 14.2 (9-17) | 20 / 13 | - **No measurable difference** in frame rate on this route: +0.1 % on the mean, both runs inside the release's range. - CPU prep is the same within run-to-run spread. - No crashes and no new layer warnings in either run. On this CPU the lock this PR splits does not seem to be where the frame time goes on this route; a slower CPU or a texture-heavier scene may show it better. 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/546/head:github-bot/gh-546'
git switch 'github-bot/gh-546'

Merge

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