shadow, play: keep snapshots cached by default and align launcher defaults #175
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!175
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/175/head"
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?
@Androtim on GitHub · 2026-11-30 00:22 UTC · original
Androtim:feat/iter172-copyback-cache-and-play-defaults→main· +72 −38 · 3 files · 1 commits · merged 2026-11-30 09:34 UTCSummary
Restores L2/L3 cache locality for shadow snapshot readbacks and cleans up regressed launcher defaults:
Keep snapshot copies cached by default (
crates/victory-gpu/src/shadow.rs):copy_snapshot_avx2/_mm256_stream_si256) behind opt-inVICTORY_RYZEN_PREP=1on large snapshot batches (>= 10 MiB), and keeps refresh copies (copy_all) and default snapshots on ordinary cachedcopy_nonoverlapping.find_allandcopy_back_withinspect them.snapshot_copy_teststo cover both default cached and streaming opt-in paths.Launcher defaults & kept environment variables (
apps/victory/src/play.rs,scripts/verify-world.ps1):VICTORY_CARD_AWAKE=1(removes inter-submission compute wake-up overhead) andVICTORY_AMBIENT_SPECULAR=1(avoids stand-in reflection color artifacts; still toggleable via F1REFLECTION ESTIMATE).VICTORY_TEXTURE_CATCHUP=1andVICTORY_TEXTURE_STAGE_MS=24for >=12 GB cards and Series S, while keeping0/16on low-VRAM Series X (1440p) so 8 GB cards avoid boot-time texture pool overshoots.VICTORY_HOMEandVICTORY_ADAPTERtoKEPTso restarts from F1 or preloading preserve custom home directories and GPU selection.KEPTentries.Verification
cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy:asset policy: 311 files okcargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu shadow::: passcargo +1.98.1-x86_64-pc-windows-gnu test -p victory play::: passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings: passcargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --features diagnostics -- -D warnings: passRTX 4060 Ti 8 GB,--release --features diagnostics,DLSS quality,75sin-world offorigin/main64 MiBblocks,D:\victory-data\cache-minivi-pr165):LowVram):12.7 fpsmedian (79.0 ms,preparing=35.7 ms,copyback=12.5 ms, vs8.95 fpsorigin/mainbaseline and9.0 fpsinpr171-codetable-s-warm),mapped_rate=8.48 ms/s,over=0 MB(6756 / 6869 MB),61,907textures uploaded,20/24lit (luma=104.89,edge_energy=7.19,magenta=0.0%),ambient_specular_active=false,crashes=0.1440p,PlayParity,LowVram):10.9 fpsmedian (91.7 ms,preparing=39.3 ms,GPU=3.1 ms,copyback=15.5 ms, vs10.6 fps / 15.8 msonpr170-v2-x),mapped_rate=12.35 ms/s,18/24lit (luma=105.16,edge_energy=7.54,magenta=0.0%),ambient_specular_active=false,crashes=0. (Note:used_max=7090 MB / over=211 MBhere is due toorigin/mainstill using 52 x64 MiBtexture blocks with560 MBfragmented free space prior to merging PR #171's 16 MiB blocks + sparse drain.)@Androtim on GitHub · 2026-11-30 01:03 UTC · original
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingAutomated Review Summary
Verdict:
needs-gpu-test(CI is passing; logic, safety, and unit tests look solid, and the PR modifies GPU shadow snapshot copy behavior and launcher defaults that warrant a local real-GPU smoke test before merging.)What was checked
crates/victory-gpu/src/shadow.rs:copy_allnow passesstream = falsetocopy_jobs, keeping host refresh copies on ordinary cachedcopy_nonoverlapping.take_snapshotsgates AVX2 non-temporal stores (copy_snapshot_avx2) behindcrate::asked_for!("VICTORY_RYZEN_PREP")and a batch threshold of>= 10 << 20(10 MiB) onx86_64(defaulting tofalseelsewhere), keeping snapshot lines in L2/L3 for subsequentfind_all/copy_back_withreads.copy_snapshotchecksstream && len >= 64 * 1024 && std::arch::is_x86_feature_detected!("avx2")before invokingcopy_snapshot_avx2, andsnapshot_copy_testsnow exercises bothstream = falseandstream = truewith alignment and canary checks.apps/victory/src/play.rs:SETTINGSdropsVICTORY_CARD_AWAKE=1andVICTORY_AMBIENT_SPECULAR=1, and updatesVICTORY_TEXTURE_CATCHUPto1andVICTORY_TEXTURE_STAGE_MSto24.settings_with_vramkeepsVICTORY_TEXTURE_CATCHUP=0andVICTORY_TEXTURE_STAGE_MS=16whenlow_vram && !series_s, placed beforemenuando.more(--set) overrides so user overrides still win.KEPTaddsVICTORY_HOMEandVICTORY_ADAPTERso menu restarts preserve them.a_plain_start_is_the_launchers,low_vram_series_x_sets_headroom_and_eviction_guards,low_vram_series_s_keeps_native_mips_and_bounds_rt_caps,high_vram_keeps_stock_defaults) verify the new defaults andKEPTentries.scripts/verify-world.ps1:SETTINGSupdates and adds the$LowVram -and $Console -eq 'series-x'guard forVICTORY_TEXTURE_CATCHUP=0/VICTORY_TEXTURE_STAGE_MS=16. No suspicious script changes observed.Local GPU Verification Needed
scripts/verify-world.ps1(orvictory play) on both Series S and Series X (1440p) profiles, including an 8 GiB low-VRAM configuration, to verify frame pacing (copyback/preparing), VRAM headroom underVICTORY_TEXTURE_CATCHUP, visual quality withVICTORY_AMBIENT_SPECULARoff by default, and optionalVICTORY_RYZEN_PREP=1stability.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-30 09:34 UTC · original
Hardware-verified on RTX 4060 Ti 8 GB (Series X 1440p
-PlayParity, warm shader cache, Wave 7B-1a:#175, #198on Wave 7Amain):5.7 fps(vs5.55 fpsWave 7A) | Draws:11600| Crashes/DRED:06635 / 6811 MB(over=0 MB, PASS budget gate,-762 MBvs7397 MB) | Pipeline drops:266(vs288)luma=101.15,edge_energy=16.68,magenta=0.0%),0failed bakesMerging onto
main.