HLE xmem: avoid recommitting pages when mapping GPU aliases #808
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by Chezzuss on 2026-11-25T08:27:41Z.
What
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.
upstream-sync referenced this pull request2026-11-25 10:10:58 +00:00
Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T09:54:05Z.
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
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.