HLE: show title windows through a stand-in that always reads its messages #1677
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!1677
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1677/head"
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?
@Calvix2k on GitHub · 2026-11-24 20:41 UTC · original
Calvix2k:codex/hle-window-standin-1616→main· +322 −7 · 2 files · 1 commits · merged 2026-11-25 00:09 UTCFixes #1616.
Ports the verified fix from @Vaximous's fork (commit 7592443 by Vax), applied unchanged onto
ffe310e; the commit keeps its original author.Summary
The title creates its window on its own thread and only reads messages when it reaches its PeekMessage loop, which can be seconds apart during loads. Windows then shows the busy cursor and, on a click, a "Not responding" ghost window.
HWND_MESSAGE), so it is never shown.victory-windowthread that only pumps messages.ShowWindowshows the stand-in,WM_SETTEXTis mirrored, closing it ends the title as before, and frames present to the process's visible window (the stand-in).Win32_Graphics_Gdifeature tovictory-hle.Validation
cargo test -p victory-hle --locked -- --test-threads=1— passed (96 unit tests and 1 integration test).cargo clippy -p victory-hle --all-targets --all-features --locked -- -D warnings— passed.cargo xtask policy— passed (154 files).WM_NULLround trip 0 ms in 47 of 50 samples versus 100-690 ms before; no busy cursor or ghost window.@pfhandler on GitHub · 2026-11-24 20:51 UTC · original
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
@Calvix2k on GitHub · 2026-11-24 20:55 UTC · original
Thanks — these were unrelated to this PR, so I upstreamed them separately, with you credited:
VICTORY_MODE=<width>x<height>→ #1701 (validates both dimensions, falls back to 3840x2160, README updated).VICTORY_NO_HOST_PAD=1→ #1702 (read once when the input hub is built, logs that pads are ignored, test).Both keep your semantics; the mode parser rejects zero and anything above D3D12's 16384 limit instead of reporting an invalid mode.