play: enable memory stack defaults (VICTORY_SLOT_EVICT, VICTORY_ALLOCATOR_TRIM, VICTORY_BUDGET_PACK) #25

Merged
Androtim merged 1 commit from upstream-pr/25 into main 2026-11-28 21:17:39 +00:00
Androtim commented 2026-11-28 07:58:18 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T07:58:18Z.


Summary

Port the memory-stack default enablement from trustno1-coder/VIctory-NVIDIA (63b902f) into apps/victory/src/play.rs SETTINGS:

  • Enables VICTORY_SLOT_EVICT=1, VICTORY_ALLOCATOR_TRIM=1, and VICTORY_BUDGET_PACK=1 by default in launcher runs (all remain overridable via --set / saved F1 menu config).
  • Adds unit test play::tests::memory_stack_defaults_on_and_overridable.

Rig Specs Tested On

  • CPU: 13th Gen Intel(R) Core(TM) i7-13700F
  • GPU & VRAM: NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM)
  • System RAM: 32 GiB
  • OS & GPU Driver: Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124

Run Settings & Profile

  • Build & Commit SHA: release / victory --features diagnostics @ bae4af3
  • Console Profile & Internal Resolution / Scale: series-s (default verify-world.ps1 baseline profile)
  • Ray Tracing: off
  • Upscaling: DLSS quality (-DlssMode quality)
  • Frame Generation: off
  • Launcher Command / Preset & Extra VICTORY_* Overrides: D:\victory-build\verify-tools\verify-world.ps1 -Exe 'D:\victory-build\verify-bins\pr25-diag.exe' -GoldenDataDir 'D:\victory-data\golden-data-minivi' -OutDir 'D:\victory-data\verify-runs\pr25-memory-stack' -WorldSeconds 75 -BaselineJson 'D:\victory-data\verify-runs\baseline-main\summary.json' -ExtraEnv @{ VICTORY_SLOT_EVICT = '1'; VICTORY_ALLOCATOR_TRIM = '1'; VICTORY_BUDGET_PACK = '1' } -AutoNudgeMenu
  • Scene / Area & Session Length: Mission-1 autosave dock transition into balcony scene (draws >= 500, max 11253 draws/frame), 75s in-world

Measurements & Verification

  • Base FPS (without Frame Gen):
    • Raw 15-window verifier median: 3.0 fps (334.9 ms, min 1.4 fps) while compiling remaining dock PSOs (863 -> 294 remaining).
    • Steady balcony scene (5874-6065 draws/frame, last 6 windows): 9.4-10.3 fps (96.9-105.9 ms/frame, preparing 55.2-61.5 ms, GPU 0.4-1.8 ms, copyback 8.0-10.0 ms).
    • Visuals: 24 PNGs sampled (lit=16/24, median luma 102.95, edge energy 7.09, 0.0% magenta); inspected frame-8485.png & frame-8493.png (crisp textures, lighting, sky, ocean, HUD intact, zero eviction flicker/artifacts).
  • Frame-Gen FPS (if enabled): N/A (off)
  • VRAM / RAM Usage: copystat peak 5915 MB VRAM / 6952 MB budget (5449 MB shared PC RAM); 3905 idle textures (313 MB) let go with only 65 (4 MB) re-uploaded, passes that made none for lack of room: 0, final_waiting=5085; private RAM 19560-19693 MB (17790 MB resident).
  • Crashes / DRED Resets: 0 (crashes=0, no_host_texture_errors=0)
  • Automated Checks:
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy (asset policy: 294 files ok)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask (6 passed; 0 failed)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings (0 warnings)
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory (24 unit + 2 census passed; 0 failed)
    • Plain release & diagnostics --release builds (objdump -p: 0 non-system MinGW DLLs)
<!-- greyfinch-sync:Androtim/MiniVI:issue:5538107509 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/25). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T07:58:18Z. --- ## Summary Port the memory-stack default enablement from `trustno1-coder/VIctory-NVIDIA` (`63b902f`) into `apps/victory/src/play.rs` `SETTINGS`: - Enables `VICTORY_SLOT_EVICT=1`, `VICTORY_ALLOCATOR_TRIM=1`, and `VICTORY_BUDGET_PACK=1` by default in launcher runs (all remain overridable via `--set` / saved F1 menu config). - Adds unit test `play::tests::memory_stack_defaults_on_and_overridable`. ## Rig Specs Tested On - **CPU:** 13th Gen Intel(R) Core(TM) i7-13700F - **GPU & VRAM:** NVIDIA GeForce RTX 4060 Ti (8 GiB VRAM) - **System RAM:** 32 GiB - **OS & GPU Driver:** Windows 11 Home (Build 26300), NVIDIA Driver 32.0.16.2124 ## Run Settings & Profile - **Build & Commit SHA:** `release` / `victory --features diagnostics` @ `bae4af3` - **Console Profile & Internal Resolution / Scale:** `series-s` (default `verify-world.ps1` baseline profile) - **Ray Tracing:** `off` - **Upscaling:** `DLSS quality` (`-DlssMode quality`) - **Frame Generation:** `off` - **Launcher Command / Preset & Extra `VICTORY_*` Overrides:** `D:\victory-build\verify-tools\verify-world.ps1 -Exe 'D:\victory-build\verify-bins\pr25-diag.exe' -GoldenDataDir 'D:\victory-data\golden-data-minivi' -OutDir 'D:\victory-data\verify-runs\pr25-memory-stack' -WorldSeconds 75 -BaselineJson 'D:\victory-data\verify-runs\baseline-main\summary.json' -ExtraEnv @{ VICTORY_SLOT_EVICT = '1'; VICTORY_ALLOCATOR_TRIM = '1'; VICTORY_BUDGET_PACK = '1' } -AutoNudgeMenu` - **Scene / Area & Session Length:** Mission-1 autosave dock transition into balcony scene (`draws >= 500`, max `11253` draws/frame), `75s` in-world ## Measurements & Verification - **Base FPS (without Frame Gen):** - Raw 15-window verifier median: `3.0 fps` (`334.9 ms`, min `1.4 fps`) while compiling remaining dock PSOs (`863 -> 294` remaining). - Steady balcony scene (`5874-6065` draws/frame, last 6 windows): `9.4-10.3 fps` (`96.9-105.9 ms/frame`, `preparing 55.2-61.5 ms`, `GPU 0.4-1.8 ms`, `copyback 8.0-10.0 ms`). - Visuals: `24` PNGs sampled (`lit=16/24`, median luma `102.95`, edge energy `7.09`, `0.0%` magenta); inspected `frame-8485.png` & `frame-8493.png` (crisp textures, lighting, sky, ocean, HUD intact, zero eviction flicker/artifacts). - **Frame-Gen FPS (if enabled):** N/A (`off`) - **VRAM / RAM Usage:** `copystat` peak `5915 MB` VRAM / `6952 MB` budget (`5449 MB` shared PC RAM); `3905` idle textures (`313 MB`) let go with only `65` (`4 MB`) re-uploaded, `passes that made none for lack of room: 0`, `final_waiting=5085`; private RAM `19560-19693 MB` (`17790 MB` resident). - **Crashes / DRED Resets:** `0` (`crashes=0`, `no_host_texture_errors=0`) - **Automated Checks:** - [x] `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy` (`asset policy: 294 files ok`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask` (`6 passed; 0 failed`) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings` (`0` warnings) - [x] `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory` (`24` unit + `2` `census` passed; `0` failed) - [x] Plain release & diagnostics `--release` builds (`objdump -p`: `0` non-system MinGW DLLs)
Androtim commented 2026-11-28 08:03:01 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T08:03:01Z.


Automated triage for the maintainers (not an approval).

Verdict: needs-gpu-test · CI (check): passing

Review Summary

This PR is a clean, minimal change to apps/victory/src/play.rs that enables three memory-management flags by default in SETTINGS:

  • VICTORY_SLOT_EVICT=1
  • VICTORY_ALLOCATOR_TRIM=1
  • VICTORY_BUDGET_PACK=1

It also adds play::tests::memory_stack_defaults_on_and_overridable, verifying that all three keys default to "1" in settings() and can be overridden to "0" via Play::more (--set).

Verification Notes

  • Confirmed in origin/main that SETTINGS in apps/victory/src/play.rs does not already define any of these three keys, so there are no duplicate entries or ordering conflicts.
  • CI is passing and no policy or security issues were found.
  • Because this enables GPU/VRAM memory-stack behavior (slot_evict, allocator_trim, budget_pack) by default for all victory play sessions—and the reported verification command passed the three variables explicitly via -ExtraEnv—a quick local real-GPU smoke test via victory play is recommended before merge to confirm stable VRAM pressure handling, no texture eviction flicker/re-upload churn, and no D3D12 errors.

Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7236328746 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/25#issuecomment-7236328746). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T08:03:01Z. --- <!-- minivi-triage v1 head=bae4af35eb9fc1ba304bc52e0403f101ccaca8df verdict=needs-gpu-test ci=passing at=2026-11-28T09:03:27Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Review Summary This PR is a clean, minimal change to [`apps/victory/src/play.rs`](apps/victory/src/play.rs) that enables three memory-management flags by default in `SETTINGS`: - `VICTORY_SLOT_EVICT=1` - `VICTORY_ALLOCATOR_TRIM=1` - `VICTORY_BUDGET_PACK=1` It also adds `play::tests::memory_stack_defaults_on_and_overridable`, verifying that all three keys default to `"1"` in `settings()` and can be overridden to `"0"` via `Play::more` (`--set`). ### Verification Notes - Confirmed in `origin/main` that `SETTINGS` in `apps/victory/src/play.rs` does not already define any of these three keys, so there are no duplicate entries or ordering conflicts. - CI is passing and no policy or security issues were found. - Because this enables GPU/VRAM memory-stack behavior (`slot_evict`, `allocator_trim`, `budget_pack`) by default for all `victory play` sessions—and the reported verification command passed the three variables explicitly via `-ExtraEnv`—a quick local real-GPU smoke test via `victory play` is recommended before merge to confirm stable VRAM pressure handling, no texture eviction flicker/re-upload churn, and no D3D12 errors. --- _Generated with Antigravity CLI (`agy`)._
Androtim commented 2026-11-28 21:11:14 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T21:11:14Z.


Real-GPU Playtest Report (Combined Build 1 Stack — RT OFF)

Tested in combined Build 1 (origin/main + Build 1 PRs #2, #3, #4, #6, #7, #9, #10, #11, #12, #14, #15, #18, #19, #22, #25, #26, #27, #33, #34, #36, #40, #43, #44, #46) on NVIDIA GeForce RTX 4060 Ti (8 GB), Windows, Series S (quality-720p, DLSS Quality):

  • Duration & Stability: 21-minute open-world session (1a-build1-world.log) — 0 crashes, 0 DRED resets, clean exit.
  • Performance: 28.2 fps (35.4 ms/frame) mid-run, 16.9 fps (59.3 ms/frame, 4,446 draws/frame) in heavy scene.
  • Key Subsystems Verified in Logs:
    • Swap chain / tearing: tearing=true, 0 refused presents.
    • Underwater compute (926c46bab3b86bd6): Translated and built host PSO cleanly.
    • Descriptor slots (VICTORY_THIN_GATE): Active (0 no free dynamic descriptor slots warnings).
    • VRAM & texture pool: Bounded at 6,934 MB in use (33 texture blocks = 2,112 MB, 1,036 MB free), 0 bogus POOL: errors.
    • DLSS: 16,577 upscalings (0 failed).
  • Visual observation during heavy initial streaming: Character top briefly appeared solid black while 8,802 textures were still queued / 206 non-RT draws dropped without a host pipeline; no D3D12 errors.
<!-- greyfinch-sync:Androtim/MiniVI:comment:7245834595 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/25#issuecomment-7245834595). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T21:11:14Z. --- ### Real-GPU Playtest Report (Combined Build 1 Stack — RT OFF) Tested in combined Build 1 (`origin/main` + Build 1 PRs `#2, #3, #4, #6, #7, #9, #10, #11, #12, #14, #15, #18, #19, #22, #25, #26, #27, #33, #34, #36, #40, #43, #44, #46`) on **NVIDIA GeForce RTX 4060 Ti (8 GB), Windows, Series S (`quality-720p`, DLSS Quality)**: - **Duration & Stability:** **21-minute** open-world session (`1a-build1-world.log`) — **0 crashes, 0 DRED resets**, clean exit. - **Performance:** `28.2 fps` (`35.4 ms/frame`) mid-run, `16.9 fps` (`59.3 ms/frame`, `4,446` draws/frame) in heavy scene. - **Key Subsystems Verified in Logs:** - **Swap chain / tearing:** `tearing=true`, `0` refused presents. - **Underwater compute (`926c46bab3b86bd6`):** Translated and built host PSO cleanly. - **Descriptor slots (`VICTORY_THIN_GATE`):** Active (`0` `no free dynamic descriptor slots` warnings). - **VRAM & texture pool:** Bounded at `6,934 MB` in use (`33` texture blocks = `2,112 MB`, `1,036 MB` free), `0` bogus `POOL:` errors. - **DLSS:** `16,577` upscalings (`0` failed). - **Visual observation during heavy initial streaming:** Character top briefly appeared solid black while `8,802` textures were still queued / `206` non-RT draws dropped without a host pipeline; no D3D12 errors.
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
Androtim/MiniVI!25
No description provided.