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

Manually merged
github merged 1 commit from gh-pr/53/head into gh-pr/53/base 2026-11-26 03:48:25 +00:00
Owner

@⁠a55uka on GitHub · 2026-11-23 23:53 UTC · original
a55uka:fix/wine-physical-pages → main · +23 −3 · 1 files · 1 commits · merged 2026-11-24 00:43 UTC

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.
**@⁠a55uka** on GitHub · 2026-11-23 23:53 UTC · [original](https://github.com/Marvisak/VIctory/pull/53) `a55uka:fix/wine-physical-pages` → `main` · +23 −3 · 1 files · 1 commits · merged 2026-11-24 00:43 UTC `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.
XMemAllocatePhysicalPages makes 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, so wineserver ran at full load
while the title's threads waited on it, and loading hardly moved.

Under Wine (detected by ntdll's wine_get_version export) the sections
are now SEC_COMMIT and the per-view commit is skipped. Wine backs a
committed section with a sparse file, so untouched pages still cost
nothing. Windows keeps SEC_RESERVE, since a busy host may be unable to
commit the 6.1 GiB the title asks for in one go.

Tested: Linux (Wine 11.21), i7-12700K, RTX 4070. wineserver load drops
after the first seconds and the title gets to its loading screen,
drawing and dispatching.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:48:23 +00:00
github manually merged commit 78b84047e5 into gh-pr/53/base 2026-11-26 03:48:25 +00:00
Author
Owner

@⁠DaviTostes on GitHub · 2026-11-24 00:09 UTC · original

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).

**@⁠DaviTostes** on GitHub · 2026-11-24 00:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/53#issuecomment-7117769817) 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).
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!53
No description provided.