HLE: title window shows the busy cursor and goes "Not responding" during loads (fix on a fork) #1616
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#1616
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Vaximous on GitHub · 2026-11-24 19:48 UTC · original
Problem
While a title runs, the busy cursor shows over its window almost all the time, and clicking the window often turns it into a "Not responding" ghost.
Cause: the title creates its window on one of its own threads, and that thread only reads window messages when it reaches its PeekMessage loop. During loads and slow frames that can be seconds apart. Windows treats a window that hasn't read its messages for 5 s as hung: it shows the busy cursor, and a click replaces it with a ghost window. Measured round trips of a
WM_NULLsent to the window: 100-690 ms typically, with multi-second stalls during loads.Fix
In
crates/victory-hle/src/modules/lifecycle.rs:HWND_MESSAGE), so it is never shown.victory-windowthread whose only job is pumping its messages.ShowWindowshows the stand-in, andWM_SETTEXTis mirrored onto it.Two files:
lifecycle.rs(+322/-7) andcrates/victory-hle/Cargo.toml(adds theWin32_Graphics_Gdifeature).Branch
https://github.com/Vaximous/VIctory/compare/main...fix/title-window-standin (commit 7592443, based on
ffe310e).Tested
ffe310e,cargo test -p victory-hlepasses (96 tests, 0 failures), andcargo clippy -p victory-hle --all-targets -- -D warningsis clean.WM_NULLround trip to the visible window: 0 ms in 47 of 50 samples, against 100-690 ms before.AI use
Written with Claude Code (Claude Opus 5.5); tested locally.