gpu: opt in to address-range stripes on the mapping lock (streaming load wait 202 -> 23 ms) #87
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!87
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-87"
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?
@superboynick on GitHub · 2026-11-27 17:45 UTC · original
superboynick:pr/mapping-stripes→main· +484 −57 · 9 files · 3 commits · openWhat I tested
RTX 5070 Ti Laptop (12 GB, 32-lane waves), Windows 11 26100, release build,
--console series-x, the 36-item play set, frame generation off. This is the striped lock from exotiquee's comment on #59, as a separate change:VICTORY_MAPPING_STRIPES=<n>, unset or1= the single lock, byte for byte.Stripes are 2 MiB address ranges. A mapping call takes only the stripes its range covers, a refresh only the stripes it touches, always ascending; a range that grows releases and reacquires; FIFO ordering keeps a reader from being starved.
Windows paired on scene progress, draw count and mapping rate, draws within 4.66%; steady windows are after 300 frames in the scene, load windows are the first streaming pass.
What happened
Two things worth knowing:
All three counts pass a 4,325,376-byte paging remap comparison and a concurrency test where a writer on unrelated stripes completes while another writer waits on readers; if the old view grows while waiting, the writer releases and retakes. With one stripe, eight startup frames are byte-identical to the build before this.
Validation: GNU release build passes;
cargo test -p victory-hlepasses;cargo test -p victory-gpu415 pass, 2 fail, 35 ignored, and those two failures reproduce ond12eb1b.What would make it mergeable
Note: #38 touches
watch.rs,xmem.rsandtexture.rsin the same area, so whichever lands second will need a rebase.Written with an AI assistant.
@superboynick on GitHub · 2026-11-27 19:50 UTC · original
Independent confirmation, run by hand on the release build of this branch, Series S, same save and warm cache, menu keys to get into the scene, eight window samples an arm:
VICTORY_MAPPING_STRIPES14That is +6.4% on this scene, which is the direction the load-frame numbers predicted but smaller — this arm spends most of its time in ordinary play, not in the streaming pass where the wait actually is. Eight samples an arm is not enough to call a steady-state gain, so I am not claiming one: what it does say is that four stripes does not cost anything in ordinary play on this machine.
The load-frame figures in the description (submit wait 202.03 to 22.94 ms, frame 499.12 to 258.31 ms) remain the claim to check, and they need someone with a save that streams hard.
Written with an AI assistant.
4754b4756ctod6a2e332bad6a2e332bato3281a0268d3281a0268dto7a85c4cc057a85c4cc05to0b03591bed0b03591bedto5d3358d5b4View 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.