Submissions: a title write forgets only the copies refreshed ahead it touches (VICTORY_COPY_SCOPED, VICTORY_LAND_SAME; from mandy) #552

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

@⁠voiceovarian1-max on GitHub · 2026-12-03 09:44 UTC · original
voiceovarian1-max:port-copy-scoped → main · +265 −2 · 6 files · 1 commits · open

  • VICTORY_COPY_SCOPED=1 (the launcher sets it): a title buffer copy, or a copy at its place in
    a list, makes the steps behind it refresh again only the copies refreshed ahead that it
    touches (host.rs title_written_at), not all of them. mandy, RX 6800: frame -2.2 ms (+-1.0).
  • VICTORY_LAND_SAME (on): a landing that finds title memory holding the bytes the card wrote
    already puts nothing and notes nothing (land.rs); it matters most with VICTORY_PLACED_TITLE
    (#488).

Ported from ProjectLeonida/mandy 1d22590b9 (ubiquitarianism) and b7a58349f (NotRexed),
GPL-3.0-or-later. Tests: land/tests.rs.

What is in it

  • README.md | 2 +
  • crates/victory-gpu/src/host.rs | 164 ++++++++++++++++++++++++++++++++++-
  • crates/victory-gpu/src/inplace.rs | 29 +++++++
  • crates/victory-gpu/src/land.rs | 32 +++++++
  • crates/victory-gpu/src/land/tests.rs | 37 ++++++++
  • scripts/play-foxhound.ps1 | 3 +

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/552) `voiceovarian1-max:port-copy-scoped` → `main` · +265 −2 · 6 files · 1 commits · open - VICTORY_COPY_SCOPED=1 (the launcher sets it): a title buffer copy, or a copy at its place in a list, makes the steps behind it refresh again only the copies refreshed ahead that it touches (host.rs title_written_at), not all of them. mandy, RX 6800: frame -2.2 ms (+-1.0). - VICTORY_LAND_SAME (on): a landing that finds title memory holding the bytes the card wrote already puts nothing and notes nothing (land.rs); it matters most with VICTORY_PLACED_TITLE (#488). Ported from ProjectLeonida/mandy 1d22590b9 (ubiquitarianism) and b7a58349f (NotRexed), GPL-3.0-or-later. Tests: land/tests.rs. **What is in it** - `README.md` | 2 + - `crates/victory-gpu/src/host.rs` | 164 ++++++++++++++++++++++++++++++++++- - `crates/victory-gpu/src/inplace.rs` | 29 +++++++ - `crates/victory-gpu/src/land.rs` | 32 +++++++ - `crates/victory-gpu/src/land/tests.rs` | 37 ++++++++ - `scripts/play-foxhound.ps1` | 3 + **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_COPY_SCOPED=1 (the launcher sets it): a title buffer copy, or a copy at its place in
  a list, makes the steps behind it refresh again only the copies refreshed ahead that it
  touches (host.rs title_written_at), not all of them. mandy, RX 6800: frame -2.2 ms (+-1.0).
- VICTORY_LAND_SAME (on): a landing that finds title memory holding the bytes the card wrote
  already puts nothing and notes nothing (land.rs); it matters most with VICTORY_PLACED_TITLE
  (#488).

Ported from ProjectLeonida/mandy 1d22590b9 (ubiquitarianism) and b7a58349f (NotRexed),
GPL-3.0-or-later. Tests: land/tests.rs.

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:22 +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/552#issuecomment-7374692864) 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

@⁠BrenoMazini on GitHub · 2026-12-03 16:42 UTC · original

Tested on v0.8.3.5 with #551: together they bring long frames while the camera turns

I ran this PR on top of v0.8.3.5, on its own and together with #545 and #551: 14 runs on one PC. The full numbers and the method are in my comment on #551. In short:

  • With the three on, the submitting thread prepares a frame about 5 ms faster. Refreshes fall by about 4 ms and copies of changed buffers by another 4 ms. The frame rate barely moves.
  • Alone, this PR stays within the noise. Turning, it gave 21.1 and 18.1 % of frames over 100 ms, against 17.1 and 18.8 % with none of the PRs, at the same density.
  • With #551 it gives clearly more long frames while the camera turns: 27.5 % of frames over 100 ms and a p95 of 122 ms, against 17-19 % and 109-110 ms without either. Standing still, nothing changes.

Switches for this PR alone: COPY_SCOPED=1, with LAND_SAME at its default and TAKE_BLOCKS=0, WC_SUBRANGE_NO_BACK=0 so that #551's parts stay off. For the pair: QUICK_FIND_WINDOWS=1, COPY_SCOPED=1 and the defaults.

I can split the pair further, or run with a log line you'd like to see.

**@⁠BrenoMazini** on GitHub · 2026-12-03 16:42 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/552#issuecomment-7385293820) **Tested on v0.8.3.5 with #551: together they bring long frames while the camera turns** I ran this PR on top of v0.8.3.5, on its own and together with #545 and #551: 14 runs on one PC. The full numbers and the method are in [my comment on #551](https://git.gtahub.st/github/readmet3xt-lab--foxhound/pulls/551). In short: - **With the three on, the submitting thread prepares a frame about 5 ms faster.** Refreshes fall by about 4 ms and copies of changed buffers by another 4 ms. The frame rate barely moves. - **Alone, this PR stays within the noise.** Turning, it gave 21.1 and 18.1 % of frames over 100 ms, against 17.1 and 18.8 % with none of the PRs, at the same density. - **With #551 it gives clearly more long frames while the camera turns:** 27.5 % of frames over 100 ms and a p95 of 122 ms, against 17-19 % and 109-110 ms without either. Standing still, nothing changes. Switches for this PR alone: `COPY_SCOPED=1`, with `LAND_SAME` at its default and `TAKE_BLOCKS=0`, `WC_SUBRANGE_NO_BACK=0` so that #551's parts stay off. For the pair: `QUICK_FIND_WINDOWS=1`, `COPY_SCOPED=1` and the defaults. I can split the pair further, or run with a log line you'd like to see.
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/552/head:github-bot/gh-552'
git switch 'github-bot/gh-552'

Merge

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