feat(victory-hle,victory-gpu): VICTORY_WINDOW_OFFSCREEN=1 keeps the title's window off every screen #1009
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1009
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@whoalin1 on GitHub · 2026-11-28 10:59 UTC · original
whoalin1:pr/offscreen-window→main· +57 −5 · 2 files · 1 commits · merged 2026-11-29 08:16 UTCSummary
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-runpasseda46e774116to5899d752d3github-bot referenced this pull request2026-11-29 10:17:27 +00:00