Rework guest memory tracking/virtual address space/direct and flexible memory #135

Manually merged
github merged 3 commits from gh-pr/135/head into gh-pr/135/base 2026-11-26 09:11:44 +00:00
Owner

@⁠Nmzik on GitHub · 2026-07-31 00:15 UTC · original
KytyPS5:prt-memory-tracking → main · +3106 −2838 · 28 files · 3 commits · merged 2026-07-31 01:07 UTC

  • Reserves the guest virtual address space before GPU/driver initialization. Credit to @⁠Scarlet-Raine THANKS for identifying the root cause. #116
  • Uses a single shared backing file for guest memory mappings (direct + flexible 13.5 GB pool).
  • Removes virtual-memory fallbacks to anonymous mappings.
  • Allocates flexible memory from the shared backing file instead of anonymous memory.
  • Corrects Prospero virtual-memory flags (DMEM not stack).
  • Allocates guest stacks from normal memory, NOT FLEXIBLE memory workaround.
  • Reduces Windows and POSIX memory syscalls, improving performance in multiple 2D and 3D games (1.5-2x in some games).
  • Fixes sub-page-aligned PS5 ELF PT_LOAD segments.
  • macOS and Linux support is not tested (likely regressed but can easily be fixed)
**@⁠Nmzik** on GitHub · 2026-07-31 00:15 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/135) `KytyPS5:prt-memory-tracking` → `main` · +3106 −2838 · 28 files · 3 commits · merged 2026-07-31 01:07 UTC - Reserves the guest virtual address space before GPU/driver initialization. Credit to @⁠Scarlet-Raine THANKS for identifying the root cause. #116 - Uses a single shared backing file for guest memory mappings (direct + flexible 13.5 GB pool). - Removes virtual-memory fallbacks to anonymous mappings. - Allocates flexible memory from the shared backing file instead of anonymous memory. - Corrects Prospero virtual-memory flags (DMEM not stack). - Allocates guest stacks from normal memory, NOT FLEXIBLE memory workaround. - Reduces Windows and POSIX memory syscalls, improving performance in multiple 2D and 3D games (1.5-2x in some games). - Fixes sub-page-aligned PS5 ELF PT_LOAD segments. - macOS and Linux support is not tested (likely regressed but can easily be fixed)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:11:43 +00:00
github manually merged commit b7888046ba into gh-pr/135/base 2026-11-26 09:11:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.