HLE xmem: avoid recommitting pages when mapping GPU aliases #809
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!809
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-809"
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?
@Chezzuss on GitHub · 2026-11-25 08:27 UTC · original
Chezzuss:codex/fxceless-skip-alias-recommit→main· +52 −8 · 1 files · 1 commits · openWhat
When copying GPU page mappings,
map_aliasfinds the source in a live physical view. Mapping another view of the same section page can use its existing commitment, so the alias path skips the redundantVirtualAlloc(MEM_COMMIT). The initial mapping and the existing partial-unmap restoration path still commit as before.Tested
Windows 11 x64, build 26340. All 12 XMem tests passed with
cargo test --locked --profile diag -p victory-hle modules::xmem::tests -- --test-threads=1. The regression test checks the commit call count, the alias'sMEM_COMMITstate, and writes shared through both views. This branch was tested with synthetic data. Its effect on frame rate has not been isolated.AI-assisted.
@MamaLeVrai on GitHub · 2026-11-25 09:54 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
e40ef63intomain9376fd6in a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails, with the same two errors asmainitself on this machine (function placed_filler_twins is never used,field depth_written is never read,victory-gpu): this PR adds none and removes none.cargo test --workspace --locked: 540 passed, 0 failed, 10 ignored, two runs (mainalone: 540 passed). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
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.