Draws: keep each host copy's heap buffer spans up to date (VICTORY_INDEX_HEAP_SPANS; from mandy) #545
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/545"
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:43:36Z.
With VICTORY_INDEX_HEAP_SPANS=1 (the launcher sets it; off in the code), the buffer range each
host copy of the indexed descriptor heap covers is kept up to date as the heap's slots change
(draw/heap_sweep.rs), instead of being made again from the slots at every pass.
Ported from ProjectLeonida/mandy d367675c7 (ubiquitarianism), GPL-3.0-or-later. mandy measured
the frame median -1.6 ms standing on an RTX 4060 Ti and about -5 ms walking on an RX 6800.
Tests: draw/heap_sweep_tests.rs.
What is in it
crates/victory-gpu/src/draw.rs| 180 +++++++++++++---crates/victory-gpu/src/draw/heap_sweep.rs| 274 ++++++++++++++++++++++++crates/victory-gpu/src/draw/heap_sweep_tests.rs| 185 ++++++++++++++++scripts/play-foxhound.ps1| 4 +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:11Z.
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 tillo88 on 2026-12-04T00:47:13Z.
Replay-bench measurement on v0.8.3.5 with
VICTORY_INDEX_HEAP_SPANS=1: no measurable differenceMeasured: PR head
9edee15merged onto release v0.8.3.5 (5e44415), withVICTORY_INDEX_HEAP_SPANS=1set by hand (the launcher sets it in the PR), 2 measured runs (after a warm-up run that is not counted), against 5 runs of v0.8.3.5 without the PR (fps range 36.45-37.23), same route (~6.5 min).Mean fps: release 36.76, PR 36.92 (+0.4%): no measurable difference. Median frame time 28.18 ms against 28.28 ms for the release (release runs 27.80-28.70), so no median frame-time change shows on this route and machine; p95 and p99 are inside the release's range.
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.