GPU, Pipelines: add non-blocking repeat-frame fallback and 80 ms wait budget #56
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!56
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/56/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 16:24 UTC · original
Androtim:feat/iter70-nonblocking-pipeline-fallback→main· +73 −7 · 3 files · 1 commits · merged 2026-11-29 04:45 UTCSummary
Ported the non-blocking repeat-frame pipeline wait fallback and 80 ms default non-screen wait budget from
CHECK6960/Victory-Nvidia-optimized(c51df9f) acrosscrates/victory-gpu/src/pipeline.rs,crates/victory-gpu/src/pipeline/make.rs, andcrates/victory-gpu/src/host.rs:parse_wait_budget_ms): Lowers the defaultVICTORY_PIPELINE_WAIT_MSbudget for non-screen draws/dispatches from500 msto80 ms(while preservingscreen_budget()at10_000 msso lighting-bake and screen passes are never dropped behind cold shader compiles).Pending::missed_wait+SKIPPED_REPEAT): Extractswait_within()and marks a non-screenPendingwithmissed_waitonce a frame spends at least half its budget waiting on an unfinished compile, skipping blocking waits on repeat draws in subsequent frames until finished and surfacing{skipped_repeat:.0} repeat-waits skippedviaMeter::frame(verified compatible withscripts/analyze-world-run.pyFPS_RE).parse_wait_budget_defaults_to_80_and_reads_overridesandmissed_wait_skips_repeat_frames_for_non_screen_onlyincrates/victory-gpu/src/pipeline/make.rs.Rig Specs Tested On
Run Settings & Profile
diag@0771b98(after verifying plain--releasehas zero non-system MinGW DLL imports)series-s(verify-world.ps1default, 960x540 PNG captures)offDLSS qualityoffVICTORY_*Overrides:verify-world.ps1default settings (-WorldSeconds 75 -AutoNudgeMenu)draws >= 500, visually inspectedframe-7920.png&frame-8672.png), 75s capture across 15 world windowsMeasurements & Verification
9.88mean /10.9median (min2.0, p107.24, max draws11420; vs baseline8.9fps median)6004.5 MBmedian /6022 MBmax against6890 MBmin budget (0 MBover budget,room=false8.3%; baseline5864 MBmax)0(no_host_texture_errors=0,final_waiting=1705vs7121baseline,mapped_rate=34.96 ms/s,resident_rate=109.83 ms/s,median_dropped_no_pipeline=258vs261.0baseline,lit=19/24,luma=103.18,edge_energy=7.21,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-gpu -p victory --features diagnostics --all-targets -- -D warnings(0warnings)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --lib -- --test-threads=1(452 passed; 0 failed; 36 ignored)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 19:03 UTC · original · edited 2026-11-29 01:04 UTC
Automated triage for the maintainers (not an approval).
Verdict:
needs-gpu-test· CI (check):passingSummary
Clean, focused port of the 80 ms default non-screen pipeline wait budget and non-blocking repeat-frame wait fallback across
crates/victory-gpu/src/pipeline/make.rs,crates/victory-gpu/src/pipeline.rs, andcrates/victory-gpu/src/host.rs.Code Review
crates/victory-gpu/src/pipeline/make.rs:parse_wait_budget_mscleanly extractsVICTORY_PIPELINE_WAIT_MSparsing with an80ms default (down from500ms), whilescreen_budget()remains at10_000ms so screen andscene_input/ bake passes are unaffected.wait_withinchecks!screen && p.missed_wait.load(Ordering::Acquire)before acquiringSPENTorDONE, incrementsSKIPPED_REPEAT, and returns early. Oncep.madeis populated by a worker,ready()short-circuits before callingwait(), somissed_waitnever needs to be cleared.p.missed_waitonly when!screen && p.made.get().is_none() && waited >= budget / 2avoids marking pipelines that merely observed an already-exhausted shared frame budget (left == 0).parse_wait_budget_defaults_to_80_and_reads_overridesandmissed_wait_skips_repeat_frames_for_non_screen_only) cover default/override parsing, repeat-frame skipping, and screen-pass exemption.crates/victory-gpu/src/pipeline.rs&crates/victory-gpu/src/host.rs:take_skipped_repeat()mirrorstake_left_out()and surfaces{skipped_repeat:.0} repeat-waits skippedinMeter::frame.FPS_REinscripts/analyze-world-run.py(without a host pipeline.*?textures picked by index:), so log parsing remains compatible.Verdict
CI is passing and the logic/concurrency look sound. Because this changes default D3D12 host pipeline wait timing (
500 ms -> 80 ms) and cold-cache draw-drop behavior invictory-gpu, a local real-GPU smoke test is warranted to confirm no one-off non-screen passes are lost on cold shader caches.Generated with Antigravity CLI (
agy).@Androtim on GitHub · 2026-11-29 00:06 UTC · original
Rebased onto
origin/main(9a2e92b->680c112) and addressed the minor review note:Changes
crates/victory-gpu/src/pipeline.rsconflict (take_skipped_repeatplaced alongsidemain's non-diagnosticsDROPStelemetry).crates/victory-gpu/src/pipeline/make.rsto state the80 msdefault budget (VICTORY_PIPELINE_WAIT_MSoverrides).Verification (
680c112)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 pipeline::(27 passed, includingparse_wait_budget_defaults_to_80_and_reads_overridesandmissed_wait_skips_repeat_frames_for_non_screen_only).--release(1m 50s,objdump -pconfirmed Windows system DLLs only, zero non-system MinGW runtime DLLs) and--release --features diagnostics(3m 48s).pr56-rebased,VICTORY_BOOK=0pending PR #71 merge) — 11/11 gates PASS:11.35 fpsmedian (88.4 ms/frame, baseline8.9 fps),10956max draws across16world windows5497 MBmax VRAM /6541 MBmin budget (0 MBover, baseline5864 MB)46671textures uploaded,2727final waiting (baseline7121),1–2 msmaking host copies /13–20 msmaking slots' views in the final 5s windowsmapped()rate31.24 ms/s(longest11.9 ms),0crashes17/24lit PNGs (105.62median luma vs103.2baseline,0.0%near-black,6.93edge energy,0.0%magenta); visually verified clean exterior geometry, textures, lighting, foliage, water, and UI.@Androtim on GitHub · 2026-11-29 04:45 UTC · original
Automated RTX 4060 Ti 8 GB A/B hardware verification passed (
playtest/wave2vsorigin/main1ab5d84):cargo test(RTX 4060 Ti):victory-shaderlds_sub(1/1),emit::wave64_tests(14/14),victory-gpu(505/505) — 520 passed, 0 failed.scripts/verify-world.ps1, DLSS Quality + golden autosave):77.25 ms) vs 3.20 fps (308.8 ms) baseline (+10.25 fps / 4.2x faster)max_draws=3122vs29940crashes /0DRED6174 / 6903 MB(-25 MBvs baseline,0 MBover budget)final_waiting=7638vs12258(-4620)frame-7969.png,frame-8409.png), no regressions vsorigin/main.