Repository navigation
Conversation
Preserve the title's shared section offsets and alias/remap behaviour. On constrained Windows hosts this trades pagefile commit for disk space; enable only with VICTORY_FILE_BACKED_PAGES=1. Exercise a placeholder and a storage view of the same page, including cleanup after the last view closes.
# Conflicts: # crates/victory-hle/Cargo.toml # crates/victory-hle/src/modules/xmem.rs
|
Automated triage for the maintainers. Thanks for the rebase. Reviewed at The mechanics in The points from the earlier note are still open:
Verdict: needs work (needs the maintainer's decision). CI: passing. Generated by Claude Code |
Leave the allocator diagnostics tests together, including upstream Marvisak#1720. This moves the existing test unchanged so both additions merge without touching the allocator or rewriting the published PR branch.
An optional [paths].physical_pages_dir selects a sparse-capable volume. Check the path outside source trees before execution and keep it absolute if the title changes directories. Keep the existing env switch as an override, and leave pagefile sections unchanged by default. Open each backing file exclusively with create_new and FILE_FLAG_DELETE_ON_CLOSE. The kernel handles cleanup on last close, including on setup failures and process exit. tempfile remains test-only. AI-assisted by GPT-6.2 Astra.
|
Offscreen Wine/NVIDIA verification of Tested — Linux 6.17, Wine 11.0, Intel i7-13620H / 16 GiB RAM, RTX 4060 Laptop 8 GiB, NVIDIA 590.48.01, Rust 1.98.1, Windows MSVC target. NVIDIA masking disabled (
Shared coherence failure, not a demonstrated #2519 regression Reproducer sequence:
Exactly the same failure occurs with Commands (wrapper supplies Local evidence directories under Not tested: native GPU imports of file-backed memory, a multi-GB allocation, actual RAM reclamation/peak RSS, disk-pressure behavior, a current-main integration, the full suite, title loading/gameplay or performance. No title launched. AI-assisted verification/report: omp, OpenAI GPT-6 Astra. Results above are from executed local commands, not inferred test outcomes. 27 November: mixed-stack follow-through reaches the prologue card, not gameplayThis is not an exact-head retest or a retraction of the standalone alias failure above. I ported this PR's production mechanism at Same Wine 11 / RTX4060 Laptop / 16 GiB host and diagnostic relaxed-vkd3d Offscreen gates: 64 combined tests passed (including sparse-section lifetime, paging recovery, stride feedback, cache policy and 34 Wave64 cases), plus two config tests and one 64 MiB copy-only coherence fixture in each of scoped-file and default-tmpfs modes. Real GPU fixtures require the physical adapter. Wine's WARP-requested legs fall back to NVIDIA, not independent software coverage. Scoped backing retained correct CPU→GPU, GPU→guest, later CPU-write and second-mapping-alias data through production copy paths, checking every word after reclamation. At four active checkpoints, the selected disk file went from 64 MiB resident to zero; tmpfs retained 64 MiB. Normal final unmap/token release deleted the scoped file. These fixtures explicitly fsync/request cgroup reclaim; the title runs below did neither. Runtime configuration: fresh diagnostics release (55.51 s compilation, intended worktree paths recorded), Series S,
All exit137 were deliberate guard time stops, not crashes or RAM stops. Initial available RAM and caches differed; these are sequential integration smoke tests, not matched A/B savings or loading-time benchmarks. No recognizable 3D world, controllable gameplay or FPS claim. Snapshots identify four regular files under New cleanup finding: after killing the complete Wine scope, named backing files survived despite delete-on-close. Normal fixture cleanup therefore does not cover this Wine termination mode. Startup left779.67 MiB allocated; the90 s run left4039.27 MiB. I removed only exact device/inode-matched files from ended trials, after confirming inactive scopes and no open handles. The180 s run's files were handled the same way. Suggested owner follow-through: document/test Wine whole-scope/server termination and safe stale-file recovery; never unlink an active or unidentified backing object. Repeated killed runs otherwise consume disk and collide with reused names. The later black frame has separate actionable findings:43 compute translation refusals (14 divergent64-lane ballots,23 split-wave LDS-without-uniform-fence,3 divergent reductions,3 divergent cross-lane reads), plus unsupported host texture formats67/115/86. Descriptor paging was active with zero Local evidence (no title assets or imagery published):
Subsequent rendering gate, still no gameplay (27 November)Same dirty scoped-backing/paging/copy-only integration, now with #2101 Resolution correction: the earlier prologue stack ignored After the new scope became inactive, four backing files were removed only after exact snapshot device/inode checks and an empty |
|
Wine/RTX 4060 Laptop follow-through: the user observed correctly-looking rendered imagery, with severe lag, on a VIctory-NVIDIA integration using this PR's scoped-file policy. The credited code adaptation and full verification report are now public: trustno1-coder/VIctory-NVIDIA#1226 (head Wine 11, Linux 6.17, NVIDIA 590.48.1, physical RTX 4060 Laptop 8 GiB / 16 GiB system RAM, stock assertion-enabled vkd3d-proton The 2026-11-28 15:48:40 UTC run reached its 9,216 MiB scope cap ( Suggested next owner experiment, relevant to #3012: bound in-flight streaming/decompression demand (bytes as well as workers) and compare the same reached scene with Raw mapping paths, game imagery/assets and saves remain local. The PR publishes the measured results and reproducible hardware fixtures. |
When 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.