HLE: title window shows the busy cursor and goes "Not responding" during loads (fix on a fork) #1615
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?
Imported from Marvisak/VIctory. Originally posted by Vaximous on 2026-11-24T19:48:36Z.
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.
upstream-sync referenced this issue2026-11-24 21:03:09 +00:00