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

Open
voiceovarian1-max wants to merge 1 commit from upstream-pr/552 into main
voiceovarian1-max commented 2026-12-03 09:44:20 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T09:44:20Z.


  • 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

<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5623940185 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/552). Originally posted by [voiceovarian1-max](https://github.com/voiceovarian1-max) on 2026-12-03T09:44:20Z. --- - 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)
voiceovarian1-max commented 2026-12-03 10:04:22 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T10:04:22Z.


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.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7374692864 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/552#issuecomment-7374692864). Originally posted by [voiceovarian1-max](https://github.com/voiceovarian1-max) on 2026-12-03T10:04:22Z. --- 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.
BrenoMazini commented 2026-12-03 16:42:06 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T16:42:06Z.


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.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:comment:7385293820 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/552#issuecomment-7385293820). Originally posted by [BrenoMazini](https://github.com/BrenoMazini) on 2026-12-03T16:42:06Z. --- **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://github.com/readmet3xt-lab/foxhound/pull/551#issuecomment-7385277621). 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/552:upstream-pr/552'
git switch 'upstream-pr/552'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/552'
git switch 'upstream-pr/552'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/552'
git switch 'upstream-pr/552'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/552'
git switch 'main'
git merge --squash 'upstream-pr/552'
git switch 'main'
git merge --ff-only 'upstream-pr/552'
git switch 'main'
git merge 'upstream-pr/552'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
readmet3xt-lab/foxhound!552
No description provided.