perf(gpu,hle): EcoQoS opt-out fallback, triple-buffered tearing swapchain, batched HW-RT unmap, and Streamline log dedup #414
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/414"
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-04T00:54:10Z.
Summary
Ports three verified
GPL-3.0performance and stability improvements:Windows 11 EcoQoS throttling opt-out fallback & triple-buffered
ALLOW_TEARINGswapchain (crates/victory-hle/src/runtime.rs,crates/victory-gpu/src/host.rs)ReTerryDavis/ReVIctory(GPL-3.0), commitea1c5709c10f5687197fc83d6383726b273fbe7f(ea1c570).SetProcessInformation(ProcessPowerThrottling)withPROCESS_POWER_THROTTLING_EXECUTION_SPEED-only whenPROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTIONis rejected (e.g., pre-Windows 11 22H2), callsSetThreadExecutionState(ES_CONTINUOUS | ES_DISPLAY_REQUIRED | ES_SYSTEM_REQUIRED)to keep system/display active, and logspower_unthrottledwhile preservingVICTORY_EFFICIENCY_MODE=1.BUFFERS = 3, configurable viaVICTORY_SWAPCHAIN_BUFFERSclamped to2..=4), disables DXGIAlt+Enterexclusive fullscreen across all swapchain paths (DXGI_MWA_NO_ALT_ENTER) soALLOW_TEARING, Streamline DLSS-G, present-hooked DLSS, and FSR 3 proxies stay in windowed/borderless mode, and guardsDXGI_PRESENT_ALLOW_TEARINGonsync_interval == 0with existing runtime fallback toDXGI_PRESENT(0)on refusal.Single-pass batched HW-RT table eviction for page-mapping copies (
crates/victory-gpu/src/hwrt.rs,crates/victory-gpu/src/hwrt/decoders.rs,crates/victory-gpu/src/watch.rs,crates/victory-gpu/src/lib.rs,crates/victory-hle/src/modules/xmem.rs)TrustNo1/Darner(GPL-3.0,https://git.gtahub.st/TrustNo1/Darner), commit775a0c7(PR #92).hwrt::title_memory_freed_manywithjoined_spans/in_spansand predicate-basedMeshletCache::forget.watch::title_memory_freed_gatheredaroundxmem::map_aliases(VICTORY_HW_RT_FREED_GATHERED=0disables) soas_map,recording_tlas, hidden structures, waiting queue, BLAS LRU,decoded_ibs, andvalidated_ibsare each walked once per page-mapping copy batch instead of once per unmapped page.Streamline log message deduplication (
crates/victory-gpu/src/streamline.rs)TrustNo1/Darner(GPL-3.0,https://git.gtahub.st/TrustNo1/Darner), commit3e6c82f(#111).message_key) and logs repeated Streamline errors/warnings on the 1st occurrence and every 1000th occurrence with count (bounded at 4096 distinct keys), preventing per-frame error floods (e.g.,out of VRAM (39)) from stalling disk I/O.Verification
cargo +1.98.1-x86_64-pc-windows-gnu check --workspace: passed cleanly with zero errors/warnings.victory-hle:runtime::tests::power_throttling_masks_opt_out_of_ecoqos_with_fallback,modules::xmem::tests::batched_copies_that_cannot_be_served_change_nothing(6 passed, 0 failed)victory-gpu:host::spare::swap_chain_buffers_defaults_to_triple_buffered_and_clamps_overridehost::spare::tearing_chain_and_present_flags_respect_dxgi_contracthwrt::tests::freed_ranges_joined_name_what_each_alone_nameshwrt::tests::freed_gathered_defaults_on_and_disables_on_zerohwrt::decoders::tests::*(includingMeshletCache::forgetpredicate)watch::ask_holds::freed_gathered_batches_nested_unmaps_until_outermost_scope_endsstreamline::tests::a_repeated_streamline_message_is_logged_first_then_every_thousandthstreamline::tests::streamline_log_deduper_bounds_distinct_keys(13 passed across both test runs, 0 failed)
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T01:01:59Z.
Triage (
47cecb8c, CI queued):+485/-51, 8 files, zero opt-in toggles): Windows 11 EcoQoS throttling opt-out fallback +SetThreadExecutionState(runtime.rs), triple-bufferedALLOW_TEARINGswapchain +DXGI_MWA_NO_ALT_ENTER(host.rs), batched HW-RTtitle_memory_freed_many(hwrt.rs/watch.rs/xmem.rs,VICTORY_HW_RT_FREED_GATHERED=0kill-switch), and Streamline log dedup (streamline.rs).#282) + Gate 3 plain---releaseA/B (verifyingALLOW_TEARING+ DLSS/FSR/FG proxy compatibility &VICTORY_HW_RT=1unmap path).host.rs&streamline.rs(shared with#413Ɵ) — merge sequentially.Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T02:01:11Z.
Marking
triage: needs rebaseafter#415(e2cbc10b) merged ontomain(overlappingcrates/victory-gpu/src/host.rs). Once rebased cleanly with green CI, ready for Gate 2 + Gate 3 GPU A/B.Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-04T02:02:06Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-rebase· CI (check):passingThis PR no longer merges cleanly into
main.To change the verdict: Rebase onto current
mainand resolve conflicts; CI and triage will run again automatically.Generated with Antigravity CLI (
agy).