Launcher: shader writes into write-combined copies from 64 KB stay on the card #521
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/521"
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-02T23:03:52Z.
The launcher keeps shader writes into write-combined copies on the card from 64 KB instead of 1 MB (
VICTORY_WC_NO_BACK_MIN_KB1024 → 64). This stops a character's clothes flickering dark or bright in single frames.What was wrong
At 1024 KB, shader writes into a write-combined copy between 64 KB and 1 MB go back to title memory: compare, fetch, and merge after the flight lands. In a scene early in the game, a character's clothes were then drawn black, or brighter, in single frames. It happened on upstream
mainat ~37 fps and on a faster local build at ~45 fps. With the copy's writes left on the card, the frames are clean.The exact bytes read stale were not found. This keeps the copy off the write-back path; it does not fix a race on that path. ProjectLeonida/mandy keeps the 1 MB threshold and does not flicker, so the race is somewhere in foxhound's write-back of shader writes (the relay's fetch and merge, or the merges under writes while flights are in the air). It may be behind other flicker reports too (#306, #413).
Copies under 64 KB (results the title reads back) still go back.
0(every copy left on the card) was clean in one run on the local build too. It made heavy scenes near black once on 2026-11-26, so it is not proposed.What is in it
scripts/play-foxhound.ps1:VICTORY_WC_NO_BACK_MIN_KB1024 → 64, with the reason.README.md: the default in the switch table.Tested
main7dbcdcb:cargo testrun for this.Not tested
AI use
Claude Code with Claude Opus 5.5 found the setting with the A/B runs above (each one a real run on the hardware named), wrote the change and wrote this description.
🤖 Generated with Claude Code
Imported from readmet3xt-lab/foxhound. Originally posted by tillo88 on 2026-12-03T03:44:45Z.
Replay-bench measurement: no measurable difference on v0.8.3.3 in 2 of 3 runs; one slow run, cause unknown
Measured: PR head
381a5eemerged onto release v0.8.3.3 (same code as main7dbcdcb). Since the PR changes the launcher's default, the bench setVICTORY_WC_NO_BACK_MIN_KB=64directly for the layer. 3 measured runs in two jobs (each after a warm-up run that is not counted), against 8 runs of v0.8.3.3 without the PR, same route (~6.5 min). The bench does not measure flicker.Mean fps over the two normal runs: 36.64 vs 36.60 (+0.1%), which is no measurable difference. Run 2 was slow for most of the route; the layer logged no error. Release runs with identical switches fell into a similar slow state on this bench before (6-9 fps average) for an unknown reason, so we cannot tell whether this run is related to the switch.
Crashes: none in the PR runs and none in the release runs (no host GPU failure, no device lost).
Config: RTX 5070 Ti 16 GB, Ryzen 7 9800X3D, 32 GB, Windows 11; default
play-foxhound.ps1settings (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.
Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T07:46:20Z.
Thanks for the bench runs. They agree with ours on speed: on upstream
main7dbcdcbthe two 64 KB runs here were 37.3 and 36.1 fps against 36.6 and 36.5 at 1024 KB, so the change is for the flicker, not for frame rate.None of the five runs at 64 KB here (two on
main, three on a local build; RTX 4070 Ti 12 GB, Series S profile) was slow in the 22 s we measured, but five runs cannot rule out the state your run 2 fell into. Yours are the first runs on the Series X profile: no crash there; the flicker itself is not checked on that profile yet.Written with Claude Code (Claude Opus 5.5) from the runs in the description.
Imported from readmet3xt-lab/foxhound. Originally posted by voiceovarian1-max on 2026-12-03T10:04:30Z.
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.
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.