watch: enable beside-the-guard title writes (VICTORY_COPY_BESIDE, VICTORY_STORE_BESIDE) by default #27
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27"
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?
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_BESIDEandVICTORY_STORE_BESIDE) by default incrates/victory-gpu/src/titlewrite.rs(opt-out via=0):copies_on()andstores_on()fromcrate::asked_for!tocrate::toggled!.ON_IN_TESTfromCell<bool>toCell<Option<bool>>(defaulting toSome(false)for existing guard-opening tests inwatch.rs) and updatesstores_and_copies_of_the_title_leave_the_guardto useSome(true)/Some(false).titlewrite::tests::beside_switches_default_on_and_respect_test_override.Rig Specs Tested On
Run Settings & Profile
release/victory --features diagnostics@8c397b8series-s(defaultverify-world.ps1baseline profile)offDLSS quality(-DlssMode quality)offVICTORY_*Overrides: Default-env binary run (noVICTORY_COPY_BESIDE/VICTORY_STORE_BESIDEoverrides:pr27-copy-store-beside), plus combined A/B run onpr26-diag.exewith both active alongside PR #26 (ab-copy-store-beside)draws >= 500, max11283/12303draws/frame),75sin-worldMeasurements & Verification
pr27-copy-store-beside, 75s, no overrides):369,551copies and101,907stores handled beside guards (540,025 no-op stores, 45,048 no-op copy parts, and 2,165,114 self-descriptor copies skipped);changing protectionsdropped to5.0-5.9 ms/frame;328-353blocks/frame made read-only; raw 15-window median5.8 fps(dock PSO warmup868 -> 294still compiling), steady balcony8.7-10.5 fps,final_waiting=4823(vs baseline7121).VICTORY_FAULT_UNLOCKEDon warmpr26-diag.exe(ab-copy-store-besidevsab-fault-unlocked): ALL 11/11 verifier gates PASS, median FPS10.9 -> 11.25 fps(steady balcony11.0-12.0 fps,+26.4%over8.9 fpsbaseline),guardslock wait15.05 ms/frame(from83.31 msonorigin/main),final_waiting=1865.24PNGs sampled (lit=16/24, median luma103.45, edge energy7.05,0.0%magenta); inspectedframe-8253.png&frame-8261.png.off)pr27-copy-store-besidecopystatpeak5847 MBVRAM /6981 MBbudget (5549 MBshared PC RAM);ab-copy-store-beside5819 MB/6939 MBbudget.0(crashes=0,no_host_texture_errors=0)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(0warnings)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features victory-gpu/diagnostics -- -D warnings(0warnings)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1(449 passed; 0 failed; 36 ignored, includingbeside_switches_default_on_and_respect_test_override)--releasebuilds (objdump -p:0non-system MinGW DLLs)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):passingSummary
Clean, minimal change flipping
VICTORY_COPY_BESIDEandVICTORY_STORE_BESIDEfrom opt-in (crate::asked_for!) to default-on (crate::toggled!, opt-out via=0) incrates/victory-gpu/src/titlewrite.rs.Code Review
crates/victory-gpu/src/titlewrite.rs:copies_on()andstores_on()tocrate::toggled!matchescrates/victory-gpu/src/switch.rs: defaulttrueunless the env var is"0", while preservingVICTORY_ABruntime toggling underfeature = "diagnostics".titlewrite::importstill guards hooking withab::bit("VICTORY_COPY_BESIDE").is_some() || copies_on()(diagnostics) /copies_on()(plain), soVICTORY_COPY_BESIDE=0cleanly returns the original host import address.ON_IN_TESTfromCell<bool>toCell<Option<bool>>defaulting toSome(false)preserves existing fault-opening test coverage inwatch.rswhile allowingNoneto exercise the defaulttoggled!path.titlewrite::tests::beside_switches_default_on_and_respect_test_overrideuses aDropguard (Restore) and verifies all threeON_IN_TESTstates (Some(false),Some(true),None).crates/victory-gpu/src/watch.rs:stores_and_copies_of_the_title_leave_the_guardis updated consistently toSome(true)/Some(false).Verification Status
memcpy/memmove/memset) and faulting-store emulation beside GPU-watched pages by default invictory-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=0opt-out still works cleanly).Note: This is an automated technical triage review and does not constitute formal maintainer approval.
Generated with Antigravity CLI (
agy).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):1a-build1-world.log) — 0 crashes, 0 DRED resets, clean exit.28.2 fps(35.4 ms/frame) mid-run,16.9 fps(59.3 ms/frame,4,446draws/frame) in heavy scene.tearing=true,0refused presents.926c46bab3b86bd6): Translated and built host PSO cleanly.VICTORY_THIN_GATE): Active (0no free dynamic descriptor slotswarnings).6,934 MBin use (33texture blocks =2,112 MB,1,036 MBfree),0bogusPOOL:errors.16,577upscalings (0failed).8,802textures were still queued /206non-RT draws dropped without a host pipeline; no D3D12 errors.