feat(victory-hle,victory-gpu): VICTORY_WINDOW_OFFSCREEN=1 keeps the title's window off every screen #1009
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1009"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by whoalin1 on 2026-11-28T10:59:26Z.
Summary
Ports
ScarlettPort5831360to add opt-inVICTORY_WINDOW_OFFSCREEN=1(off by default) for background/automated test runs.When enabled:
victory-hle/src/modules/lifecycle.rsand fallback windows invictory-gpu/src/host.rsare created at(-32000, -32000)withWS_EX_TOOLWINDOW | WS_EX_NOACTIVATE(no taskbar button, never steals focus/keyboard).WM_WINDOWPOSCHANGINGinwindow_prockeeps top-level windows off-screen without minimizing or hiding them, so rendering, presents, andVICTORY_KEYScontinue working normally.fullscreen()andcapture_mouse()are skipped while offscreen mode is active.Verification
Verified on Windows (
x86_64-pc-windows-msvc, RTX 4070 SUPER):git diff --check origin/main..HEAD— cleancargo run --locked -p xtask -- policy—asset policy: 294 files okcargo clippy --workspace --all-targets --locked&--all-features— 0 warnings in touched filescargo test --release -p victory-hle --locked --lib— 188 passed, 0 failed, 3 ignored (hle-probefixture: 1 passed);cargo test --release -p victory-gpu --locked --no-runpassed