feat(victory-hle,victory-gpu): VICTORY_WINDOW_OFFSCREEN=1 keeps the title's window off every screen #1009

Merged
whoalin1 merged 1 commit from upstream-pr/1009 into main 2026-11-29 08:16:57 +00:00
whoalin1 commented 2026-11-28 10:59:26 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by whoalin1 on 2026-11-28T10:59:26Z.


Summary

Ports ScarlettPort 5831360 to add opt-in VICTORY_WINDOW_OFFSCREEN=1 (off by default) for background/automated test runs.

When enabled:

  • Top-level title windows in victory-hle/src/modules/lifecycle.rs and fallback windows in victory-gpu/src/host.rs are created at (-32000, -32000) with WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE (no taskbar button, never steals focus/keyboard).
  • WM_WINDOWPOSCHANGING in window_proc keeps top-level windows off-screen without minimizing or hiding them, so rendering, presents, and VICTORY_KEYS continue working normally.
  • fullscreen() and capture_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 — clean
  • cargo run --locked -p xtask -- policy — asset policy: 294 files ok
  • cargo clippy --workspace --all-targets --locked & --all-features — 0 warnings in touched files
  • cargo test --release -p victory-hle --locked --lib — 188 passed, 0 failed, 3 ignored (hle-probe fixture: 1 passed); cargo test --release -p victory-gpu --locked --no-run passed
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5539409633 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1009). Originally posted by [whoalin1](https://github.com/whoalin1) on 2026-11-28T10:59:26Z. --- ## Summary Ports `ScarlettPort` `5831360` to add opt-in `VICTORY_WINDOW_OFFSCREEN=1` (off by default) for background/automated test runs. When enabled: - Top-level title windows in [`victory-hle/src/modules/lifecycle.rs`](crates/victory-hle/src/modules/lifecycle.rs) and fallback windows in [`victory-gpu/src/host.rs`](crates/victory-gpu/src/host.rs) are created at `(-32000, -32000)` with `WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE` (no taskbar button, never steals focus/keyboard). - `WM_WINDOWPOSCHANGING` in `window_proc` keeps top-level windows off-screen without minimizing or hiding them, so rendering, presents, and `VICTORY_KEYS` continue working normally. - `fullscreen()` and `capture_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` — clean - `cargo run --locked -p xtask -- policy` — `asset policy: 294 files ok` - `cargo clippy --workspace --all-targets --locked` & `--all-features` — 0 warnings in touched files - `cargo test --release -p victory-hle --locked --lib` — 188 passed, 0 failed, 3 ignored (`hle-probe` fixture: 1 passed); `cargo test --release -p victory-gpu --locked --no-run` passed
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1009
No description provided.