Batch adjacent physical-page scatter unmaps #108
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/fxceless--victory-fork!108
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/108/head"
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?
@Kamiloj9 on GitHub · 2026-11-24 21:32 UTC · original
Kamiloj9:codex/batch-scatter-unmaps→main· +134 −2 · 1 files · 1 commits · closed without mergingSummary
XMemMapPhysicalPagesScatter.Verification
victory-hlelibrary tests passed with diagnostics on the PR base. Targeted Clippy, the diagnostic build and the asset-policy check passed locally.@BitWuehler on GitHub · 2026-11-24 22:40 UTC · original
Tested on CachyOS Linux (
Ryzen 7 9800X3D,RTX 5080620.73.04,GE-Proton11-14, release build) bundled with#95,#92,#159on top of4e17478+#454/#127/#154:victory-hleunderGE-Proton11-14(wine): 96 passed, 1 failed (pre-existing Wineonly_loopback_is_reachablemissingWSAConnectByList; allxmemscatter-unmap & remap tests pass).49–67mapping changes/frame logged,0.00 mswaiting for title memory to hold still, and 0 crashes or device removals.(AI-assisted build/log analysis.)
@LastThylacine on GitHub · 2026-11-24 22:42 UTC · original
Measured together with #95 (range locks for title-memory mapping), which changes the same lock in
xmem.rs. The two merge without conflicts, and #92 merges cleanly on top of both.Setup. One exe: #95 (
b18da0e) + this PR (2765f3d) + #92 (02c2743), all on4e17478. Each change can be turned off by a switch, so every run uses the same warm shader cache.VICTORY_MAPPING_RANGES=0is in #95. The other two switches were local, for this measurement only: one unmaps entry by entry as before this PR, the other detiles whole as before #92. Hardware: RTX 5070 Ti, i5-13600KF. Diag build, no speed switches, 8 min a run, each run started from the same fresh data. Medians are over the world (frame lines with ≥ 300 draws).What this PR does on top of #95. It cuts the mapping changes the runtime makes per frame by a third (778 → 516), and texture time drops a little (52 → 36 ms). The frame median does not move beyond noise. The two "none" runs, A and A2, differ by 14% in median, so differences under ~15% are not resolved by one run each. Once #95 lets reads and remaps of different bytes go on together, the lock is no longer where frames wait. The fewer acquisitions this PR gives then save CPU rather than wait time. Your standalone numbers (753 → 643 ms) are measured without #95, and these runs do not contradict them.
Together. The victory-hle, victory-gpu and victory-formats tests pass on the combination. The xmem tests also pass with
VICTORY_MAPPING_RANGES=0and with entry-by-entry unmaps. No device removal in any run.AI use: measured and written with Claude Code (Claude Opus 5.5); posted with my approval.
Pull request closed