Allow native file backing for physical page sections #927

Closed
Kamiloj9 wants to merge 1 commit from upstream-pr/928 into main
Kamiloj9 commented 2026-11-25 13:02:45 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Kamiloj9 on 2026-11-25T13:02:45Z.


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.
<!-- greyfinch-sync:fxceless/victory-fork:issue:6605095413 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/928). Originally posted by [Kamiloj9](https://github.com/Kamiloj9) on 2026-11-25T13:02:45Z. --- ## 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.
upstream-sync closed this pull request 2026-11-26 01:06:00 +00:00

Pull request closed

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
fxceless/victory-fork!927
No description provided.