xmem: commit physical-page sections whole under Wine #53

Merged
a55uka merged 1 commit from upstream-pr/53 into main 2026-11-24 00:43:31 +00:00
a55uka commented 2026-11-23 23:53:55 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by a55uka on 2026-11-23T23:53:55Z.


XMemAllocatePhysicalPages creates SEC_RESERVE sections and commits their pages one view at a time. Under Wine, each commit is a wineserver request that scans every range committed so far. wineserver ran at full load, the title's threads sat blocked on its pipe (req_add_mapping_committed_range / req_map_view in gdb), and loading barely moved.

Tested:

  • Fedora with Wine 11.21 Staging, on an i7-12700K with an RTX 4070.
  • wineserver load drops after the first few seconds.
  • The title reaches its loading screen and draws and dispatches on the host (frame 128+).
  • Windows behaviour is unchanged, but I haven't run it there.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6571339337 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/53). Originally posted by [a55uka](https://github.com/a55uka) on 2026-11-23T23:53:55Z. --- `XMemAllocatePhysicalPages` creates `SEC_RESERVE` sections and commits their pages one view at a time. Under Wine, each commit is a wineserver request that scans every range committed so far. wineserver ran at full load, the title's threads sat blocked on its pipe (`req_add_mapping_committed_range` / `req_map_view` in gdb), and loading barely moved. Tested: - Fedora with Wine 11.21 Staging, on an i7-12700K with an RTX 4070. - wineserver load drops after the first few seconds. - The title reaches its loading screen and draws and dispatches on the host (frame 128+). - Windows behaviour is unchanged, but I haven't run it there.
upstream-sync closed this pull request 2026-11-24 06:51:06 +00:00
DaviTostes commented 2026-11-24 06:54:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:09:43Z.


Tested 2fec09c stacked on #39 on Arch Linux x86_64, rustc 1.98.1: pass (no regression only).

  • cargo test --workspace: 155 passed, 0 failed, 3 ignored; merge with #39 clean.
  • Scope note: the change targets XMemVirtualAlloc's commit path under Wine, and this run does not launch the title under Wine, so only the portable HLE suite is covered.
  • No game data used.

AI-assisted (DeepSeek V4.1 Flash coding agent).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7117769817 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/53#issuecomment-7117769817). Originally posted by [DaviTostes](https://github.com/DaviTostes) on 2026-11-24T00:09:43Z. --- Tested `2fec09c` stacked on **#39** on **Arch Linux x86_64, rustc 1.98.1**: **pass (no regression only)**. - `cargo test --workspace`: **155 passed, 0 failed, 3 ignored**; merge with #39 clean. - Scope note: the change targets `XMemVirtualAlloc`'s commit path under Wine, and this run does not launch the title under Wine, so only the portable HLE suite is covered. - No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!53
No description provided.