Title memory: a texture refresh waits only for remaps of its own memory (VICTORY_REMAP_SPANS; from mandy) #544
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/readmet3xt-lab--foxhound!544
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-544"
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?
@voiceovarian1-max on GitHub · 2026-12-03 09:43 UTC · original
voiceovarian1-max:port-remap-spans→main· +303 −15 · 4 files · 1 commits · openA texture refresh that reads title memory in place waited for every change of mapping of the
title's memory, wherever it was. Now each change declares the spans it may take away (each page
and the whole view it lies in, xmem.rs views_of / changing_pages), and a read waits only for a
change that touches its own range (watch.rs title_memory_reading_range). On by default;
VICTORY_REMAP_SPANS=0 waits for every change, as before.
Ported from ProjectLeonida/mandy 8f54f8371 (NotRexed, LEONIDA_REMAP_SPANS), GPL-3.0-or-later.
mandy measured it with 4 s phases walking and turning: median frame -1.3 ms (+-1.4) of 87 ms.
Tests (watch.rs): a named read and a change of its memory wait for each other; only what
touches waits; declared spans are joined.
What is in it
crates/victory-gpu/src/lib.rs| 4 +-crates/victory-gpu/src/texture.rs| 13 +-crates/victory-gpu/src/watch.rs| 231 ++++++++++++++++++++++++++++++++-crates/victory-hle/src/modules/xmem.rs| 70 +++++++++-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
@voiceovarian1-max on GitHub · 2026-12-03 10:04 UTC · original
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.