Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/370"
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-12-03T00:38:22Z.
Summary
Addresses the three remaining P0/P1 regressions identified in Reasoning Audit Pass #5 (
Androtim/MiniVI#276&Androtim/MiniVI#282):Sweep / graveyard starvation &
LOOSE.write()stall (#363):crates/victory-gpu/src/host/sweep.rs: DefaultVICTORY_SWEEP_ASYNCtofalse(opt-in viaVICTORY_SWEEP_ASYNC=1), restoring periodic1500 mssettle()runs and preventing concurrent asyncshadow::let_go_idle()LOOSE.write()lockouts across all 17ReadMostlyshards (#331) againstvictory-list-*threads.crates/victory-gpu/src/host.rs,crates/victory-gpu/src/host/graveyard_tests.rs: Raisevictory-graveyardfromTHREAD_PRIORITY_BELOW_NORMALtoTHREAD_PRIORITY_NORMALand bound its channel withstd::sync::mpsc::sync_channel(DEFAULT_GRAVEYARD_LIMIT)(256, matchingDEFAULT_REAPER_LIMIT) plus inline-drop fallback onTrySendError::Full/Disconnectedso retired resources cannot pile up unbounded under memory/pagefile pressure.Audio starvation & worker oversubscription (
audio.rs+#368victory-wide-sub):crates/victory-hle/src/modules/audio.rs: Raisevictory XMA decoder(wake_decoder) priority toTHREAD_PRIORITY_HIGHESTso XMA decoding strictly outranks allTHREAD_PRIORITY_ABOVE_NORMALGPU worker pools.crates/victory-gpu/src/land.rs,crates/victory-gpu/src/land/tests.rs: Demotevictory-wide-sub(each_wide_sub) helper pool workers toTHREAD_PRIORITY_NORMAL(skippingcores::Priorityand overridingask()'sVICTORY_HELPER_PRIORITYboost on those helpers) so wide refresh helpers cannot starve audio or title threads.HDR compute bloom/starburst
0.0 * Inf -> NaNglare & cache keying (#346):crates/victory-shader/src/emit/bitcode/finite.rs,crates/victory-shader/src/emit/lower_tests.rs: MakeModule::finite_dataconservative and overflow-checked (|v| <= 2^exp < 2^126), stoppingOp::Extract(..)(texture/buffer/CBV reads),Op::Load(_),LoadInput, non-constantLegacyF16ToF32, and arbitraryi32 -> f32bitcasts from reporting finite solegacy_mulpreserves0 * Inf/NaN = 0guards in HDR compute UAV passes while keeping provably finite constants, integer-to-float conversions,Saturate, constant-clampedFMin/FMax, and non-overflowing expressions finite.crates/victory-gpu/src/shader_cache.rs: AddVICTORY_LEGACY_MULtoTRANSLATOR_ENV_KEYSso togglingVICTORY_LEGACY_MULseparates cached shader binaries.Verification
cargo +1.98.1-x86_64-pc-windows-gnu xtask policy(asset policy: 333 files ok,--stagedclean across all 3 commits)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --locked -- -D warnings(passed)cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets --all-features --locked -- -D warnings(passed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu --locked -- --test-threads=1(770 passed; 0 failed; 39 ignored, plusVICTORY_HELPER_PRIORITY=1targeted check onwide_sub_workers_run_at_normal_prioritypassed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-hle --locked(245 passed; 0 failed; 3 ignored+no_dll_planting1 passed)cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-shader --locked -- --test-threads=1 --skip rect::tests --skip first_half_values_render_on_hardware_and_warp(370 passed; 0 failed; 6 ignored; 4 filtered out— the 4 filtered tests fail local Windows SDK10.0.22000.0dxil.dllPipeline State Validationunrelated to this change)Refs #276, #282