watch: enable beside-the-guard title writes (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE) by default #27

Merged
Androtim merged 1 commit from upstream-pr/27 into main 2026-11-28 21:17:49 +00:00
Androtim commented 2026-11-28 08:38:13 +00:00 (Migrated from github.com)

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


Summary

Enable beside-the-guard title copies and stores (VICTORY_COPY_BESIDE and VICTORY_STORE_BESIDE) by default in crates/victory-gpu/src/titlewrite.rs (opt-out via =0):

  • Switches copies_on() and stores_on() from crate::asked_for! to crate::toggled!.
  • Converts ON_IN_TEST from Cell<bool> to Cell<Option<bool>> (defaulting to Some(false) for existing guard-opening tests in watch.rs) and updates stores_and_copies_of_the_title_leave_the_guard to use Some(true)/Some(false).
  • Adds unit test titlewrite::tests::beside_switches_default_on_and_respect_test_override.

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 @ 8c397b8
  • 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: Default-env binary run (no VICTORY_COPY_BESIDE / VICTORY_STORE_BESIDE overrides: pr27-copy-store-beside), plus combined A/B run on pr26-diag.exe with both active alongside PR #26 (ab-copy-store-beside)
  • Scene / Area & Session Length: Mission-1 autosave dock transition into balcony scene (draws >= 500, max 11283 / 12303 draws/frame), 75s in-world

Measurements & Verification

  • Base FPS (without Frame Gen):
    • Default-enabled binary (pr27-copy-store-beside, 75s, no overrides): 369,551 copies and 101,907 stores handled beside guards (540,025 no-op stores, 45,048 no-op copy parts, and 2,165,114 self-descriptor copies skipped); changing protections dropped to 5.0-5.9 ms/frame; 328-353 blocks/frame made read-only; raw 15-window median 5.8 fps (dock PSO warmup 868 -> 294 still compiling), steady balcony 8.7-10.5 fps, final_waiting=4823 (vs baseline 7121).
    • Combined A/B with PR #26 VICTORY_FAULT_UNLOCKED on warm pr26-diag.exe (ab-copy-store-beside vs ab-fault-unlocked): ALL 11/11 verifier gates PASS, median FPS 10.9 -> 11.25 fps (steady balcony 11.0-12.0 fps, +26.4% over 8.9 fps baseline), guards lock wait 15.05 ms/frame (from 83.31 ms on origin/main), final_waiting=1865.
    • Visuals: 24 PNGs sampled (lit=16/24, median luma 103.45, edge energy 7.05, 0.0% magenta); inspected frame-8253.png & frame-8261.png.
  • Frame-Gen FPS (if enabled): N/A (off)
  • VRAM / RAM Usage: pr27-copy-store-beside copystat peak 5847 MB VRAM / 6981 MB budget (5549 MB shared PC RAM); ab-copy-store-beside 5819 MB / 6939 MB budget.
  • 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-gpu --lib -- --test-threads=1 (449 passed; 0 failed; 36 ignored, including beside_switches_default_on_and_respect_test_override)
    • Plain release & diagnostics --release builds (objdump -p: 0 non-system MinGW DLLs)
<!-- greyfinch-sync:Androtim/MiniVI:issue:5538377420 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/27). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T08:38:13Z. --- ## Summary Enable beside-the-guard title copies and stores (`VICTORY_COPY_BESIDE` and `VICTORY_STORE_BESIDE`) by default in `crates/victory-gpu/src/titlewrite.rs` (opt-out via `=0`): - Switches `copies_on()` and `stores_on()` from `crate::asked_for!` to `crate::toggled!`. - Converts `ON_IN_TEST` from `Cell<bool>` to `Cell<Option<bool>>` (defaulting to `Some(false)` for existing guard-opening tests in `watch.rs`) and updates `stores_and_copies_of_the_title_leave_the_guard` to use `Some(true)`/`Some(false)`. - Adds unit test `titlewrite::tests::beside_switches_default_on_and_respect_test_override`. ## 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` @ `8c397b8` - **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:** Default-env binary run (no `VICTORY_COPY_BESIDE` / `VICTORY_STORE_BESIDE` overrides: `pr27-copy-store-beside`), plus combined A/B run on `pr26-diag.exe` with both active alongside PR #26 (`ab-copy-store-beside`) - **Scene / Area & Session Length:** Mission-1 autosave dock transition into balcony scene (`draws >= 500`, max `11283` / `12303` draws/frame), `75s` in-world ## Measurements & Verification - **Base FPS (without Frame Gen):** - Default-enabled binary (`pr27-copy-store-beside`, 75s, no overrides): `369,551` copies and `101,907` stores handled beside guards (540,025 no-op stores, 45,048 no-op copy parts, and 2,165,114 self-descriptor copies skipped); `changing protections` dropped to `5.0-5.9 ms/frame`; `328-353` blocks/frame made read-only; raw 15-window median `5.8 fps` (dock PSO warmup `868 -> 294` still compiling), steady balcony `8.7-10.5 fps`, `final_waiting=4823` (vs baseline `7121`). - Combined A/B with PR #26 `VICTORY_FAULT_UNLOCKED` on warm `pr26-diag.exe` (`ab-copy-store-beside` vs `ab-fault-unlocked`): **ALL 11/11 verifier gates PASS**, median FPS `10.9 -> 11.25 fps` (steady balcony `11.0-12.0 fps`, `+26.4%` over `8.9 fps` baseline), `guards` lock wait `15.05 ms/frame` (from `83.31 ms` on `origin/main`), `final_waiting=1865`. - Visuals: `24` PNGs sampled (`lit=16/24`, median luma `103.45`, edge energy `7.05`, `0.0%` magenta); inspected `frame-8253.png` & `frame-8261.png`. - **Frame-Gen FPS (if enabled):** N/A (`off`) - **VRAM / RAM Usage:** `pr27-copy-store-beside` `copystat` peak `5847 MB` VRAM / `6981 MB` budget (`5549 MB` shared PC RAM); `ab-copy-store-beside` `5819 MB` / `6939 MB` budget. - **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-gpu --lib -- --test-threads=1` (`449 passed; 0 failed; 36 ignored`, including `beside_switches_default_on_and_respect_test_override`) - [x] Plain release & diagnostics `--release` builds (`objdump -p`: `0` non-system MinGW DLLs)
Androtim commented 2026-11-28 09:03:01 +00:00 (Migrated from github.com)

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


Automated triage for the maintainers (not an approval).

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

Summary

Clean, minimal change flipping VICTORY_COPY_BESIDE and VICTORY_STORE_BESIDE from opt-in (crate::asked_for!) to default-on (crate::toggled!, opt-out via =0) in crates/victory-gpu/src/titlewrite.rs.

Code Review

  • crates/victory-gpu/src/titlewrite.rs:
    • Switching copies_on() and stores_on() to crate::toggled! matches crates/victory-gpu/src/switch.rs: default true unless the env var is "0", while preserving VICTORY_AB runtime toggling under feature = "diagnostics".
    • titlewrite::import still guards hooking with ab::bit("VICTORY_COPY_BESIDE").is_some() || copies_on() (diagnostics) / copies_on() (plain), so VICTORY_COPY_BESIDE=0 cleanly returns the original host import address.
    • Changing ON_IN_TEST from Cell<bool> to Cell<Option<bool>> defaulting to Some(false) preserves existing fault-opening test coverage in watch.rs while allowing None to exercise the default toggled! path.
    • The new unit test titlewrite::tests::beside_switches_default_on_and_respect_test_override uses a Drop guard (Restore) and verifies all three ON_IN_TEST states (Some(false), Some(true), None).
  • crates/victory-gpu/src/watch.rs:
    • stores_and_copies_of_the_title_leave_the_guard is updated consistently to Some(true) / Some(false).

Verification Status

  • CI is passing and no logic or safety issues were found in the diff.
  • Because this enables title import hooking (memcpy/memmove/memset) and faulting-store emulation beside GPU-watched pages by default in victory-gpu, a maintainer real-GPU smoke test is recommended to confirm there are no missed dirty-page notifications, visual artifacts, or regressions across scenes (and that =0 opt-out still works cleanly).

Note: This is an automated technical triage review and does not constitute formal maintainer approval.


Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7236979282 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/27#issuecomment-7236979282). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T09:03:01Z. --- <!-- minivi-triage v1 head=8c397b85c797036c9ef3b12de0b6b2453e8b1271 verdict=needs-gpu-test ci=passing at=2026-11-28T09:03:28Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-gpu-test` · **CI (`check`):** `passing` ### Summary Clean, minimal change flipping `VICTORY_COPY_BESIDE` and `VICTORY_STORE_BESIDE` from opt-in (`crate::asked_for!`) to default-on (`crate::toggled!`, opt-out via `=0`) in `crates/victory-gpu/src/titlewrite.rs`. ### Code Review - **`crates/victory-gpu/src/titlewrite.rs`**: - Switching `copies_on()` and `stores_on()` to `crate::toggled!` matches `crates/victory-gpu/src/switch.rs`: default `true` unless the env var is `"0"`, while preserving `VICTORY_AB` runtime toggling under `feature = "diagnostics"`. - `titlewrite::import` still guards hooking with `ab::bit("VICTORY_COPY_BESIDE").is_some() || copies_on()` (diagnostics) / `copies_on()` (plain), so `VICTORY_COPY_BESIDE=0` cleanly returns the original host import address. - Changing `ON_IN_TEST` from `Cell<bool>` to `Cell<Option<bool>>` defaulting to `Some(false)` preserves existing fault-opening test coverage in `watch.rs` while allowing `None` to exercise the default `toggled!` path. - The new unit test `titlewrite::tests::beside_switches_default_on_and_respect_test_override` uses a `Drop` guard (`Restore`) and verifies all three `ON_IN_TEST` states (`Some(false)`, `Some(true)`, `None`). - **`crates/victory-gpu/src/watch.rs`**: - `stores_and_copies_of_the_title_leave_the_guard` is updated consistently to `Some(true)` / `Some(false)`. ### Verification Status - CI is passing and no logic or safety issues were found in the diff. - Because this enables title import hooking (`memcpy`/`memmove`/`memset`) and faulting-store emulation beside GPU-watched pages by default in `victory-gpu`, a maintainer real-GPU smoke test is recommended to confirm there are no missed dirty-page notifications, visual artifacts, or regressions across scenes (and that `=0` opt-out still works cleanly). *Note: This is an automated technical triage review and does not constitute formal maintainer approval.* --- _Generated with Antigravity CLI (`agy`)._
Androtim commented 2026-11-28 21:11:16 +00:00 (Migrated from github.com)

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


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:7245835083 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/27#issuecomment-7245835083). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T21:11:16Z. --- ### 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!27
No description provided.