HLE: optionally back physical page pools with temporary sparse files #2519
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2519
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2519"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@yyc160 on GitHub · 2026-11-25 15:13 UTC · original
yyc160:pr/sparse-physical-pools→main· +242 −36 · 7 files · 3 commits · openWhen Windows commit is tight, let the user back XMem physical page pools with sparse, delete-on-close files instead of mapping them against the system pagefile. Views of a physical page still alias the same section. The default Windows path (
SEC_RESERVE) and Wine path (SEC_COMMIT) are unchanged. This trades commit for disk space and possible I/O; it is not a GPU residency or frame-rate change.Configuration and review changes
Set
[paths].physical_pages_dirinvictory.tomlto a directory on a local sparse-capable volume with room for the pages the title writes. Leave it unset to use the system pagefile. For existing launchers,VICTORY_FILE_BACKED_PAGES=1uses the configured path or<cache_dir>/physical-pages;=0disables it even when configured.victory configshows the resolved choice. The directory is checked against the asset policy before use.create_newandFILE_FLAG_DELETE_ON_CLOSE. An existing file is never opened or truncated.tempfileis dev-only.Title startup at the submitted head (
646c17c)Four launches of the same Windows diagnostics binary built directly from this PR head, not a previous integration build. Series S title, 32 GiB host with an RTX 5070 Ti, fresh cache and private save copy for each launch. The env switch was unset throughout; only the presence of the TOML setting selected the backing. Each run was stopped after present 64.
All four reported four successful allocations totaling 74,864 logical 64 KiB pages. The first file-backed allocation was 3,520 pages (220 MiB); both sparse launches left the backing directory empty after exit. The default launches did not create it. The source title executable and seed save were unchanged. Commit headroom is system-wide, not a per-process saving; these are short startup samples, not gameplay or steady-state benchmarks.
Validation
63bcca4was tested separately; its treedc189d36matches GitHub's test merge. 153 HLE, 15 core and 14 CLI unit tests passed, along with both workspace Clippy configurations and asset policy. The optional FidelityFX SDK integration check skipped (SDK not configured). GitHub CI.AI-assisted by GPT-6.2 Astra.
@Marvisak on GitHub · 2026-11-25 18:31 UTC · original · edited 2026-11-26 03:20 UTC
Automated triage for the maintainers.
Thanks for the rebase. Reviewed at
b081ccf, which merges cleanly. CI: passing.The mechanics in
crates/victory-hle/src/modules/xmem.rsread correctly.Section::newmakes a sparse temporary file withFSCTL_SET_SPARSEand maps it withoutSEC_RESERVE.commit_viewskipsVirtualAlloccommits only for those file-backed sections. The default path keepsSEC_RESERVE, orSEC_COMMITunder Wine.The points from the earlier note are still open:
crates/victory-hle/Cargo.tomlmovestempfilefrom dev-dependencies into the runtime dependencies. No other crate ships it at runtime, so this needs the maintainer's decision.VICTORY_FILE_BACKED_PAGESenv var read inapps/victory/src/run.rs. Avictory.tomlsetting would fit the other paths better.Verdict: needs work (needs the maintainer's decision). CI: passing.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.