Buffer refusals held back by size, and small placed copies taken for the title's (from mandy) #488
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/488"
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 Koaio on 2026-12-02T17:17:01Z.
Two changes, measured on an i5-10400F (6 cores, 12 threads), 16 GB of RAM and an RTX 3060 12 GB, Series S profile at 1080p with DLSS Performance. They were written and played on an older
main, then moved onto the current one; the move needed conflict fixes but no change of logic.What changes
residency.rs,host.rs). Upload, write-back upload and shared buffers refused withE_OUTOFMEMORYstart a 500 ms window of their own. In that window only buffers at least as large as the smallest one refused are not asked for; smaller ones still are. Before, one refused 64 MB buffer held back every size for about a minute of reopening windows (428 k refusals), and then a host state prelude failed (0x8007000E) and the game crashed. Shared buffers now count their refusals like the others, throughallocation_error. Refusals are logged the first time and every thousandth.VICTORY_BUFFER_RETRY=1asks every time. An hour of play after the change had no crash, with 2,039 refusals in all.host.rs,host/place.rs, launcher), ported from ProjectLeonida/mandy'sLEONIDA_PLACED_TITLE(GPL-3.0-or-later). WithVICTORY_PLACED_TITLE=1, which the launcher now sets, a copy at its place of at most 64 KiB is taken by title memory at submission when two things hold: no flight in the air declares its destination (VICTORY_PLACED_UNDECLARED, on) or no shader wrote there in 600 frames; and its source is undeclared or the title's by the rule for fills. What reads the destination on the CPU then stops waiting for every flight. Mandy measured a frame median of 88.5 to 73.9 ms on a Ryzen 5 7600X. Here it fired about 130 times in 28 minutes: no harm seen, no measurable gain.Measured, not included
mainnow gives 6 threads for 12 logical processors. On the i5, 5 and 4 threads both took the worst frames (p99) from 774 to 142–165 ms for the same median against 8. 6 was not measured.LEONIDA_SECTION_MB): no gain on this 16 GB PC. With them off, ten minutes came out as before them (median 83.8 against 82.0 ms); with 16 MiB sections the first two minutes were slower (median 86 against 74 ms). Left out.VICTORY_HELPER_PRIORITY=0: worse (median 92.2 against 84.2 ms).VICTORY_WINDOWS_BAR_MB=3072: does nothing without resizable BAR.Tests
cargo test -p victory-gpuon this branch: 621 passed, 0 failed.cargo clippy -p victory-gpu: clean.🤖 Generated with Claude Code
Imported from readmet3xt-lab/foxhound. Originally posted by tillo88 on 2026-12-03T00:38:56Z.
Replay-bench measurement: no measurable difference on v0.8.3.3
Measured: PR head
bd12bb8merged onto release v0.8.3.3 (same code as main7dbcdcb), withVICTORY_PLACED_TITLE=1, 2 measured runs (each after a warm-up run that is not counted), against 4 runs of v0.8.3.3 without the PR, same route (~6.5 min).Mean fps: release 36.46, PR 36.48 (+0.1%). That is below the 2-3% we treat as a real change, so: no measurable difference on this route. With 4 release runs the release's own spread on this route is 36.15-36.69 fps.
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.
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.