watch: enable lock-free write-fault opening (VICTORY_FAULT_UNLOCKED) by default #26
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/26"
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:18:46Z.
Summary
Enable lock-free write-fault opening (
VICTORY_FAULT_UNLOCKED) by default incrates/victory-gpu/src/watch.rs(opt-out viaVICTORY_FAULT_UNLOCKED=0):unlocked()fromcrate::asked_for!("VICTORY_FAULT_UNLOCKED")tocrate::toggled!("VICTORY_FAULT_UNLOCKED").UNLOCKED_IN_TESTfromCell<bool>toCell<Option<bool>>so existing locked, unlocked, and mixed-thread concurrency tests keep exercising both paths deterministically.watch::tests::fault_unlocked_defaults_on_and_respects_test_override.Rig Specs Tested On
Run Settings & Profile
release/victory --features diagnostics@d8fb397series-s(defaultverify-world.ps1baseline profile)offDLSS quality(-DlssMode quality)offVICTORY_*Overrides: Default verifier run with noVICTORY_FAULT_UNLOCKEDoverride (pr26-fault-unlocked), plus same-binary A/B comparison onpr24-diag.exe(ab-fault-unlockedvspr24-loops-fallback-warm)draws >= 500, max11601draws/frame),75sin-worldMeasurements & Verification
pr26-fault-unlocked, 75s, no override):without it 417unlocked faults/frame vs4under lock;guardslock wait dropped from83.31 ms/frameto38.62 ms/frame; raw 14-window median6.0 fps(dock PSO warmup841 -> 280still compiling), steady balcony8.6-9.8 fps(median9.5 fps),final_waiting=3887(vs baseline7121).pr24-diag.exe(ab-fault-unlockedvspr24-loops-fallback-warm):guardslock wait83.31 -> 27.91 ms/frame(-66.5%),preparing50.15 -> 39.4 ms, median FPS10.15 -> 10.9 fps(steady balcony peak11.9 fps),final_waiting 3502 -> 1886.24PNGs sampled (lit=8/24, luma105.03, edge energy6.91,0.0%magenta); inspectedframe-9253.png&frame-9261.png.off)pr26-fault-unlockedcopystatpeak5852 MBVRAM /6952 MBbudget (5435 MBshared PC RAM);ab-fault-unlocked5708 MBvs5915 MB.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, includingfault_unlocked_defaults_on_and_respects_test_override)--releasebuilds (objdump -p:0non-system MinGW DLLs)Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T09:03:03Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingReview Summary
This PR flips
VICTORY_FAULT_UNLOCKEDfrom opt-in (crate::asked_for!) to opt-out (crate::toggled!, disabled viaVICTORY_FAULT_UNLOCKED=0) incrates/victory-gpu/src/watch.rs, and updates the test overrideUNLOCKED_IN_TESTfromCell<bool>toCell<Option<bool>>.What looks good
crate::toggled!("VICTORY_FAULT_UNLOCKED")(incrates/victory-gpu/src/switch.rs) cleanly defaults totrue, honors=0as opt-out, and preservesVICTORY_ABtoggling underdiagnosticsbuilds.UNLOCKED_IN_TESTtoCell<Option<bool>>keeps mixed/locked/unlocked concurrency tests (faults_at_once_on_one_block_all_go_onandwrites_to_views_are_not_lost) deterministic across both paths, andfault_unlocked_defaults_on_and_respects_test_overrideuses an RAIIRestoreguard to avoid leaking thread-local state.Minor note (non-blocking)
UNLOCKED_IN_TESTdefaulting toNone(now unlocked by default), the single-threaded tests invoked insidefaults_that_take_no_lock_tell_the_sameandbits_and_holes_with_faults_that_take_no_locknow exercise the unlocked path both standalone and inside those wrappers; the locked path remains covered byfaults_at_once_on_one_block_all_go_onandwrites_to_views_are_not_lost.Verdict
Needs local GPU test — Logic and test coverage look solid and CI is passing, but enabling lock-free write-fault opening (
open_unlocked/settle) by default invictory-gpu/src/watch.rschanges a hot title-memory/GPU coherency path and warrants a local real-GPU smoke test (including default-on vsVICTORY_FAULT_UNLOCKED=0sanity check) before merging.Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T21:11:15Z.
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.