hle: VICTORY_HIDDEN_WINDOW keeps the title's window off the screens for unattended runs #31

Merged
martindevbr merged 1 commit from upstream-pr/31 into main 2026-11-25 19:56:37 +00:00
martindevbr commented 2026-11-25 17:15:02 +00:00 (Migrated from github.com)

Imported from uiliannn/VItoriaBr. Originally posted by martindevbr on 2026-11-25T17:15:02Z.


O que faz / What it does

Com VICTORY_HIDDEN_WINDOW=1, a janela de nível superior que o título cria fica à direita da área de trabalho virtual (fora de todas as telas), com WS_EX_TOOLWINDOW (fora da barra de tarefas) e WS_EX_NOACTIVATE (nunca pega o foco). Desligado por padrão; janelas filhas não mudam.

With VICTORY_HIDDEN_WINDOW=1, the title's top-level window is placed right of the virtual desktop (off every screen), with WS_EX_TOOLWINDOW (out of the taskbar) and WS_EX_NOACTIVATE (never takes focus). Off unless set; child windows are left alone.

Por quê / Why

Para rodar testes sem supervisão numa máquina em uso: a janela continua visível para o sistema, então a swap chain apresenta normalmente e as capturas (VICTORY_CAPTURE, VICTORY_CAPTURE_WORLD) continuam funcionando, junto com VICTORY_KEYS e o frame log — sem a janela cobrir a área de trabalho nem roubar o teclado.

For unattended test runs on a machine in use: the window stays visible to the system, so the swap chain presents as usual and frame captures keep working, together with VICTORY_KEYS and the frame log, without covering the desktop or stealing keyboard focus.

Testado / Tested

Dezenas de rodadas de 5–10 min no mundo 3D (RTX 3060 12 GB, Windows 11): janela fora da tela, sem foco, quadros capturados normalmente, frame log igual ao das rodadas com janela visível. cargo test -p victory-hle lifecycle passa.

Dozens of 5–10 min runs into the 3D world (RTX 3060 12 GB, Windows 11): window off-screen and unfocused, frames captured as usual. cargo test -p victory-hle lifecycle passes.

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:6609774710 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/pull/31). Originally posted by [martindevbr](https://github.com/martindevbr) on 2026-11-25T17:15:02Z. --- ## O que faz / What it does Com `VICTORY_HIDDEN_WINDOW=1`, a janela de nível superior que o título cria fica à direita da área de trabalho virtual (fora de todas as telas), com `WS_EX_TOOLWINDOW` (fora da barra de tarefas) e `WS_EX_NOACTIVATE` (nunca pega o foco). Desligado por padrão; janelas filhas não mudam. With `VICTORY_HIDDEN_WINDOW=1`, the title's top-level window is placed right of the virtual desktop (off every screen), with `WS_EX_TOOLWINDOW` (out of the taskbar) and `WS_EX_NOACTIVATE` (never takes focus). Off unless set; child windows are left alone. ## Por quê / Why Para rodar testes sem supervisão numa máquina em uso: a janela continua visível para o sistema, então a swap chain apresenta normalmente e as capturas (`VICTORY_CAPTURE`, `VICTORY_CAPTURE_WORLD`) continuam funcionando, junto com `VICTORY_KEYS` e o frame log — sem a janela cobrir a área de trabalho nem roubar o teclado. For unattended test runs on a machine in use: the window stays visible to the system, so the swap chain presents as usual and frame captures keep working, together with `VICTORY_KEYS` and the frame log, without covering the desktop or stealing keyboard focus. ## Testado / Tested Dezenas de rodadas de 5–10 min no mundo 3D (RTX 3060 12 GB, Windows 11): janela fora da tela, sem foco, quadros capturados normalmente, frame log igual ao das rodadas com janela visível. `cargo test -p victory-hle lifecycle` passa. Dozens of 5–10 min runs into the 3D world (RTX 3060 12 GB, Windows 11): window off-screen and unfocused, frames captured as usual. `cargo test -p victory-hle lifecycle` passes.
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
uiliannn/VItoriaBr!31
No description provided.