Title memory: physical pages in sections, and a fault asks about its own page (VICTORY_SECTION_MB, VICTORY_PAGE_ASK; from mandy) #550

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

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:44 UTC · original
voiceovarian1-max:port-sections → main · +370 −41 · 4 files · 1 commits · open

  • VICTORY_SECTION_MB=16 (the launcher sets it; unset or 0: one section an allocation, as
    before): the title's physical pages are made in sections of that many MiB. The host walks a
    section's views under its lock for each page it moves, and every map and unmap of the title's
    waits for it (xmem.rs section_pages), with mandy's join of placeholders (acb39ee5c).
  • VICTORY_PAGE_ASK (on in the code): a fault asks Windows about its one page first
    (QueryWorkingSetEx), before the region around it.

Ported from ProjectLeonida/mandy 9fc4f4f6c, 8361d0374 (NotRexed), 21ef6d5a9 and acb39ee5c, after
KyleS98/VIctory-Neo 0fb1e38 and Op-lite/OP-lite e5e7120; GPL-3.0(-or-later). mandy measured the
frame mean 111.6 -> 94.4 ms and the title memory held for mapping 43 -> 9 ms a frame.

What is in it

  • crates/victory-gpu/src/inplace.rs | 50 ++++---
  • crates/victory-gpu/src/watch.rs | 123 +++++++++++++++++
  • crates/victory-hle/src/modules/xmem.rs | 233 +++++++++++++++++++++++++++++----
  • scripts/play-foxhound.ps1 | 5 +

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:44 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/550) `voiceovarian1-max:port-sections` → `main` · +370 −41 · 4 files · 1 commits · open - VICTORY_SECTION_MB=16 (the launcher sets it; unset or 0: one section an allocation, as before): the title's physical pages are made in sections of that many MiB. The host walks a section's views under its lock for each page it moves, and every map and unmap of the title's waits for it (xmem.rs section_pages), with mandy's join of placeholders (acb39ee5c). - VICTORY_PAGE_ASK (on in the code): a fault asks Windows about its one page first (QueryWorkingSetEx), before the region around it. Ported from ProjectLeonida/mandy 9fc4f4f6c, 8361d0374 (NotRexed), 21ef6d5a9 and acb39ee5c, after KyleS98/VIctory-Neo 0fb1e38 and Op-lite/OP-lite e5e7120; GPL-3.0(-or-later). mandy measured the frame mean 111.6 -> 94.4 ms and the title memory held for mapping 43 -> 9 ms a frame. **What is in it** - `crates/victory-gpu/src/inplace.rs` | 50 ++++--- - `crates/victory-gpu/src/watch.rs` | 123 +++++++++++++++++ - `crates/victory-hle/src/modules/xmem.rs` | 233 +++++++++++++++++++++++++++++---- - `scripts/play-foxhound.ps1` | 5 + **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)
- VICTORY_SECTION_MB=16 (the launcher sets it; unset or 0: one section an allocation, as
  before): the title's physical pages are made in sections of that many MiB. The host walks a
  section's views under its lock for each page it moves, and every map and unmap of the title's
  waits for it (xmem.rs section_pages), with mandy's join of placeholders (acb39ee5c).
- VICTORY_PAGE_ASK (on in the code): a fault asks Windows about its one page first
  (QueryWorkingSetEx), before the region around it.

Ported from ProjectLeonida/mandy 9fc4f4f6c, 8361d0374 (NotRexed), 21ef6d5a9 and acb39ee5c, after
KyleS98/VIctory-Neo 0fb1e38 and Op-lite/OP-lite e5e7120; GPL-3.0(-or-later). mandy measured the
frame mean 111.6 -> 94.4 ms and the title memory held for mapping 43 -> 9 ms a frame.

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:17 +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/550#issuecomment-7374691506) 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.
  • 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/550/head:github-bot/gh-550'
git switch 'github-bot/gh-550'

Merge

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