GPU, Shaders, UI: DXGI tearing presents, underwater shader fallback, and FG warmup guard #53
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!53
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/53/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-28 15:29 UTC · original
Androtim:feat/iter67-tearing-underwater-warmup→main· +36 −0 · 2 files · 1 commits · merged 2026-11-29 02:05 UTCSummary
Ported from
trustno1-coder/VIctory-NVIDIA@8fc2254("Frames shown as soon as presented, underwater shader back, warm-up restart only with frame generation"):crates/victory-shader/src/emit/mod.rs): when a wave64 compute shader fails withShaderError::Unsupportedunderloops_wave,emit()retriesemit_once()once without wave-wide loop branches, restoring underwater compute shader926c46bab3b86bd6(untranslated_shadersin 75s open-world run dropped from2to1).crates/victory-gpu/src/host.rs): queriesDXGI_FEATURE_PRESENT_ALLOW_TEARING(disabled withVICTORY_TEARING=0), preserves flags acrossResizeBuffers, and falls back cleanly onPresenterror if refused.apps/victory/src/play.rs,crates/victory-gpu/src/host/menu.rs): gatesVICTORY_WARMUP_RESTARTonVICTORY_FRAMEGEN=1and showsRESTART REQUIRED TO ENABLE FRAME GENERATIONwhen toggling Frame Gen on in a run started without it.Rig Specs Tested On
Run Settings & Profile
diag@9c8b3f7(after verifying plain--releasehas zero non-system MinGW DLL imports)series-s— 720p (0.6666667)offDLSS qualityoffVICTORY_*Overrides:verify-world.ps1default settings (tearing=trueconfirmed instderr.logwith 0 refused presents)draws >= 500), 75s capture across 15 world windowsMeasurements & Verification
9.9mean /11.2median (min1.6, p106.7, max draws11851; vs baseline8.9fps median)5685.5 MBmedian /5704 MBmax against6885 MBmin budget (0 MBover budget,room=false8.3%; baseline5864 MBmax)0(no_host_texture_errors=0,untranslated_shaders=1vs2on PR #52,final_waiting=2088vs7121baseline,mapped_rate=33.95 ms/s,median_dropped_no_pipeline=246vs261.0baseline,lit=19/24,luma=105.21,edge_energy=7.07,magenta=0.0%; all 11/11 verifier gates PASS)cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy(297 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 -p victory-shader -p victory-gpu -p victory --features diagnostics --all-targets -- -D warnings(0warnings)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --lib wave64_tests(12 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib host::menu::tests -- --test-threads=1(4 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory --bin victory(23 passed; 0 failed)cargo +1.98.1-x86_64-pc-windows-gnu build -p victory --release+objdump -p(0non-system MinGW DLLs)@Androtim on GitHub · 2026-11-28 18:49 UTC · original · edited 2026-11-29 01:03 UTC
Automated triage for the maintainers (not an approval).
Verdict:
merge-candidate· CI (check):passingReview Summary
CI is passing and the diff is small, clean, and well-tested.
apps/victory/src/play.rs(prepare): GatesVICTORY_WARMUP_RESTARTons.get("VICTORY_FRAMEGEN").is_some_and(|v| v == "1"). This aligns withsettings(), which setsVICTORY_FRAMEGEN=1when Streamline frame generation is active or ready (and removes it whenfg_type == "fsr"). Becausewarmup_markis only created once a warm-up actually runs, a user who starts without FG and later enables it will still get the one-time warm-up on their first FG-enabled launch.crates/victory-gpu/src/host/menu.rs(Menu::lines,Menu::change,the_link_is_always_right_under_the_note): AddsABOUT_FRAMEGEN_RESTARTand setsself.noteto"RESTART REQUIRED TO ENABLE FRAME GENERATION"whenVICTORY_MENU_FRAMEGEN(FRAMEGEN) is changed to a non-OFF value in a run wherelive(item)is false. Line lengths (max 53 <=COLUMNS60) and glyph coverage are verified by the added unit assertions.Minor Note (non-blocking)
crates/victory-gpu/src/host.rs) and the underwater shader fallback (crates/victory-shader/src/emit/mod.rs), neither of which appear in the current diff againstorigin/main. Worth trimming the title/body before merge so the commit history stays accurate.ITEMSandlive()incrates/victory-gpu/src/host/menu.rsstill use the literal"VICTORY_MENU_FRAMEGEN"rather than the newFRAMEGENconstant.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-29 00:25 UTC · original
Rebased onto
origin/main(6e935d7->66c776a):Changes
main:apps/victory/src/play.rs: gate automaticVICTORY_WARMUP_RESTARTonVICTORY_FRAMEGEN=1so non-FG runs do not perform an unnecessary warmup restart.crates/victory-gpu/src/host/menu.rs: showABOUT_FRAMEGEN_RESTARTand"RESTART REQUIRED TO ENABLE FRAME GENERATION"when turning Frame Generation on in a run that started without it, while preservingmain's Series S picture row andmatch_series_slogic.crates/victory-gpu/src/host.rsDXGI tearing andcrates/victory-shader/src/emit/mod.rswave-loop fallback hunks cleanly because equivalent implementations are already merged onmain.Verification (
66c776a)cargo run -p xtask -- policy(301 files ok),cargo test -p xtask(6 passed),clippy --workspace --all-targets -- -D warnings(0warnings, both plain and--features diagnostics).victory-gpu --lib host::menu,victory(25 passed), andcensus(2 passed).--release(2m 11s,objdump -pconfirmed Windows system DLLs only, zero non-system MinGW runtime DLLs).