Allow native file backing for physical page sections #928

Closed
github-bot wants to merge 1 commit from gh-pr/928/head into gh-pr/928/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 13:02 UTC · original
Kamiloj9:codex/native-file-backed-physical-pages → main · +278 −37 · 5 files · 1 commits · closed without merging

Summary

  • Let native Windows users opt into sparse temporary files for physical page sections through VICTORY_PHYSICAL_BACKING_DIR. The system paging file remains the default. The runtime keeps the file alive for the lifetime of the section, zeroes the sparse range and preserves coherence between title views and DirectStorage page windows.
  • Add an optional diagnostic that counts first commitments by section offset across aliases. Keep file-backed sections out of the cached whole-section GPU write path so that it cannot prolong their lifetime.
  • The backing approach is related to #830. Disk space is allocated as pages are written, and a late I/O error can interrupt the run.

Verification

  • On the PR branch, 14 XMem tests passed with temporary backing enabled, including the native file-backed alias and remap regression. With the default backing, 13 passed and the opt-in test was skipped. Workspace all-features check and staged asset policy passed.
  • A separate integration build on native Windows logged a single startup mapping that committed 6,236 MiB. At approximately four seconds, the opt-in run had 7,283 MiB of system commit headroom compared with 933 MiB with pagefile backing, with similar process-private bytes. The opt-in run reached texture preparation and stopped at a later private-memory surge, before the world-frame marker. This draft verifies the startup memory behavior and leaves visual and gameplay verification open.
**@⁠Kamiloj9** on GitHub · 2026-11-25 13:02 UTC · [original](https://github.com/fxceless/victory-fork/pull/928) `Kamiloj9:codex/native-file-backed-physical-pages` → `main` · +278 −37 · 5 files · 1 commits · closed without merging ## Summary - Let native Windows users opt into sparse temporary files for physical page sections through `VICTORY_PHYSICAL_BACKING_DIR`. The system paging file remains the default. The runtime keeps the file alive for the lifetime of the section, zeroes the sparse range and preserves coherence between title views and DirectStorage page windows. - Add an optional diagnostic that counts first commitments by section offset across aliases. Keep file-backed sections out of the cached whole-section GPU write path so that it cannot prolong their lifetime. - The backing approach is related to #830. Disk space is allocated as pages are written, and a late I/O error can interrupt the run. ## Verification - On the PR branch, 14 XMem tests passed with temporary backing enabled, including the native file-backed alias and remap regression. With the default backing, 13 passed and the opt-in test was skipped. Workspace all-features check and staged asset policy passed. - A separate integration build on native Windows logged a single startup mapping that committed 6,236 MiB. At approximately four seconds, the opt-in run had 7,283 MiB of system commit headroom compared with 933 MiB with pagefile backing, with similar process-private bytes. The opt-in run reached texture preparation and stopped at a later private-memory surge, before the world-frame marker. This draft verifies the startup memory behavior and leaves visual and gameplay verification open.
Trace first successful physical section commitments by section offset. Add opt-in temporary sparse backing for native Windows. Adapt the temporary backing approach from fxceless/victory-fork#830.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:00 +00:00
github-bot closed this pull request 2026-11-26 03:54:00 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.