feat(hle): add opt-in hidden window mode for lifecycle stand-in #3284
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
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
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
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/Marvisak--VIctory!3284
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@legayclightning22 on GitHub · 2026-11-26 15:49 UTC · original
legayclightning22:feat/hidden-window-mode→main· +40 −0 · 1 files · 1 commits · openSummary
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 policy@cloph-dsp on GitHub · 2026-11-26 16:00 UTC · original
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.
@Dukestar69 on GitHub · 2026-11-26 16:10 UTC · original · approved these changes
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).
@legayclightning22 on GitHub · 2026-11-26 16:21 UTC · original
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.