feat(hle): add opt-in hidden window mode for lifecycle stand-in #3282
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3284"
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 Marvisak/VIctory. Originally posted by legayclightning22 on 2026-11-26T15:49:47Z.
Summary
Adds an opt-in hidden-window presentation mode in
crates/victory-hle/src/modules/lifecycle.rsso unattended or background runs do not interfere with desktop focus or taskbar state while keeping swap-chain presentation active.Changes
VICTORY_HIDDEN_WINDOW=1is set, top-level windows created viaCreateWindowExW/CreateWindowExAreceiveWS_EX_TOOLWINDOW | WS_EX_NOACTIVATEand are positioned off-screen at(-32000, -32000)without altering swap-chain presentation.Verification
cargo check -p victory-hle --all-targetscargo clippy --locked -p victory-hle --all-targets -- -D warningscargo test -p victory-hle --libcargo xtask policyImported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-26T16:00:34Z.
Independent Windows verification. Head
434c475, Rust 1.100.0/MSVC, worktree-local CARGO_TARGET_DIR (target-3284), no game data.cargo test --locked -p victory-hle --lib -- --exact modules::lifecycle::tests::hidden_window_mode_leaves_normal_windows_alone modules::lifecycle::tests::hidden_window_mode_moves_and_hides_window_without_touching_size-> 2 passed, 0 failed, 152 filtered, exit 0.git diff --check origin/main HEADclean; both test names absent on merge base63bcca4.AI-assisted (Hy4 flash). GPU/driver N/A (CPU-only HLE tests). No game data.
Imported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-26T16:10:43Z.
Review: APPROVED
Reviewed the diff and verified locally on Windows 11 x64:
VICTORY_HIDDEN_WINDOW=1cleanly addsWS_EX_TOOLWINDOW | WS_EX_NOACTIVATEand moves the stand-in window offscreen without altering default behavior when unset. (Note: overlaps thelifecycle.rshunk in #3271.)cargo test -p victory-hle --lib modules::lifecycle:: -- --test-threads=1: 14 passed, 0 failed (includinghidden_window_mode_leaves_normal_windows_aloneandhidden_window_mode_moves_and_hides_window_without_touching_size).cargo clippy -p victory-hle --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by legayclightning22 on 2026-11-26T16:21:23Z.
Rebased cleanly onto
upstream/mainand verifiedcargo test -p victory-hle --lib(154 passed),cargo clippy --locked -p victory-hle --all-targets -- -D warnings, andcargo xtask policy.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.