HLE: show title windows through a stand-in that always reads its messages
A title makes its window on one of its own threads and reads its messages only when that thread reaches its PeekMessage loop. In slow frames and loads that is seconds apart, so the system shows the busy cursor over the window and a click turns it into a "Not responding" ghost. A top-level title window is now made message-only (it can never be shown), and a stand-in window with the title's text, style, icon and fitted size is made on a thread of ours that does nothing but pump its messages. The title's ShowWindow shows the stand-in, its window text follows, closing the stand-in suspends and ends the title as before, the keyboard window menu is still refused, and the stand-in goes when the title's window does. Frames are presented to the process's visible window, now the stand-in; input is unaffected, since titles read it through GameInput, not window messages. Co-Authored-By: Claude Opus 5.5 <[email protected]> (cherry picked from commit 9145d9d3dabb0d5f8263b4203a82586710929d90)
This commit is contained in:
1 parent
5f1a45bdc2
commit
9820bdc45e
2 files changed
+322
-7
No files matched your search
@@ -20,6 +20,7 @@ tracing.workspace = true
|
||||
windows-sys = { workspace = true, features = [
|
||||
"Win32_Foundation",
|
||||
"Win32_Globalization",
|
||||
"Win32_Graphics_Gdi",
|
||||
"Win32_Media",
|
||||
"Win32_Security",
|
||||
"Win32_Security_Cryptography",
|
||||
|
||||
Reference in new issue
Block a user