Host copies: quick window finds, 4 KiB takes, write-combined parts left on the card (from mandy) #551
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/551"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T09:44:13Z.
memory outside buffers found, while the buffers' and windows' tables are unchanged
(shadow.rs quick_windows). mandy d27ba8b68: frame -0.9 to -2.4 ms.
goes up as the 4 KiB pieces that changed, not whole (mandy 6d0ba44f0 and d920d850d).
parts of a copy stay on the card as whole write-combined copies do (mandy f85d1790a by
hardly-relevant, after gmanka/victory 32be36d).
Ported from ProjectLeonida/mandy (GPL-3.0-or-later), commits above (NotRexed unless named).
The refresh test is adjusted as in mandy 6d0ba44f0: with VICTORY_TAKE_BLOCKS the page the
landing took goes up as the 4 KiB that differ.
What is in it
crates/victory-gpu/src/host.rs| 6 +crates/victory-gpu/src/lib.rs| 2 +-crates/victory-gpu/src/shadow.rs| 532 ++++++++++++++++++++++++++++++---crates/victory-gpu/src/watch.rs| 9 +-crates/victory-hle/src/modules/xmem.rs| 42 ++-scripts/play-foxhound.ps1| 3 +Tested
cargo check --workspace --tests --lockedonmain7dbcdcb: no errors, no warnings.Not tested
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
Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T10:04:21Z.
Combined test of this PR with #521, #543 and #544-#556, all merged onto
main7dbcdcb(branch fox-all of voiceovarian1-max/foxhound):cargo test --workspace --locked -- --test-threads=4: 1,415 passed, 0 failed, 50 ignored (29 binaries), noSKIPPED.VICTORY_KEYS, no input from the PC): window scene 38-42 fps against 34-37 formainon the same boot; no device removal, no crash; a burst of 67 pictures showed no one-picture flicker of the character's clothes.Tested by Claude Code with Claude Opus 5.5 on the hardware named.
Imported from readmet3xt-lab/foxhound. Originally posted by BrenoMazini on 2026-12-03T16:41:35Z.
Tested on v0.8.3.5 together with #545 and #552: less work on the submitting thread, but #551 and #552 together bring long frames while the camera turns
I ran this PR on top of v0.8.3.5 together with #545 and #552, then each PR on its own, then #551 with #552. That was 14 runs on one PC, in one day, plus one I dropped.
In short
TAKE_BLOCKS,WC_SUBRANGE_NO_BACK,QUICK_FIND_WINDOWS). #552 changes which copies refresh again after a title write (COPY_SCOPED,LAND_SAME). My guess is that something in how they meet makes some frames wait, but I haven't split them any further.How it was measured
max_stepapplied).5e44415), with #545, #551 and #552 merged. The fork's big-buffer home and the constants port are off in these runs. Around that, the build adds #527's lock-free journal reads, bakes without the full texture pass (BAKE_PASS_MS) and a longer wait on Quit. These are the same in every run.shadow.rsshader_writes: v0.8.3.5 limits the read-only skip to card copies with a twin.ro_on = gpu_ro_skip_now() && self.card.is_some() && self.card_has_before(), thenif !ro_on && !wc_on.GUARD_PAGES=1,PROFILE=1,PROFILE_TOP=1,BAKE_PASS_MS=0, andVICTORY_KEYS_FILEfor the input. Only the PR switches differ:TAKE_BLOCKS=0,WC_SUBRANGE_NO_BACK=0,LAND_SAME=0INDEX_HEAP_SPANS=1,TAKE_BLOCKS=0,WC_SUBRANGE_NO_BACK=0,LAND_SAME=0QUICK_FIND_WINDOWS=1,LAND_SAME=0(TAKE_BLOCKS,WC_SUBRANGE_NO_BACKat their default, on)COPY_SCOPED=1,TAKE_BLOCKS=0,WC_SUBRANGE_NO_BACK=0(LAND_SAMEat its default, on)QUICK_FIND_WINDOWS=1,COPY_SCOPED=1(the others at their defaults)INDEX_HEAP_SPANS=1,QUICK_FIND_WINDOWS=1,COPY_SCOPED=1VICTORY_KEYS_FILE: 20 s to settle (not counted), 60 s standing still, then 24 s turning the camera (12 s right, 12 s back).Morning series: none against all three (AG AGP AGP AG), turning
The write-watch asking grew by about 3 ms with the three on and took back part of the saving.
With my fork's constants port and big-buffer home (one run each), the card is the limit (90-95 % busy). There the three cut preparing from 56.2 to 45.5 ms while turning, but frames over 100 ms went from 17.6 to 21.1 % and the p95 from 105 to 114 ms.
I saw no visual faults in any run.
If it helps, I can split the pair further:
TAKE_BLOCKS,WC_SUBRANGE_NO_BACKandQUICK_FIND_WINDOWSone at a time againstCOPY_SCOPEDandLAND_SAME. I can also run with a log line you'd like to see, or attach the logs with the game folder replaced by<game>. I'm posting a short note on #552 that points here.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.