d3d12_xs: keep the Win32 PresentX window responsive during rendering #526
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/526"
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 ubiquitarianism/leonida. Originally posted by Rain156 on 2026-11-24T06:57:08Z.
Claimed in the coordination issue as: RT-PRESENTX-WINDOW-PUMP (claim).
Depends on: #414
What and why
The Win32 fallback window created by #414 belongs to the rendering thread. On native Windows the window stopped answering messages during pipeline compilation, and it could still be marked hung while draws and presents continued. Give this HWND a dedicated message thread. Release its Vulkan presenter before waking and joining the window owner on shutdown.
The change to review is ce3e5153f. The preceding PresentX commits are from #414. The title-owned window path is outside this change.
Tested
WM_NULLprobe in 0.08 ms while the game was running. Before the change Windows reported the fallback HWND hung. Captured frames were still black. GPU content is a separate open problem.GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 Pro x64. The hidden-window test needs only a Win32 desktop.
AI-assisted: yes, OpenAI Codex.
Checklist
mainis merged into the stack and the branch merges cleanly.Imported from ubiquitarianism/leonida. Originally posted by DesertGamer on 2026-11-24T13:32:38Z.
Independent check of the window pump on a second native-Windows machine. Windows 11, RTX 5070, driver 617.14,
LEONIDA_D3D12=vulkan, own 1.0.2.1 copy. I cherry-picked the single commitce3e5153f(thepresent_window.hchange) ontomain21625bca8+ #427 + #602 + #387 + #357 + #432; it applied without conflicts and built, so on this tree it did not need #414.Responding state of the
LeonidaPresentXwindow, polled withProcess.Respondingwhilegta6rt --runboots the title:The "without" column is from an earlier build of a near-identical stack (#359 and #727 in place of #432 and the others, same machine), not the same tree, so read it as the symptom and not as a paired A/B. What I did not check: dragging, minimising or closing the window, or a run past 55 s.
AI-assisted: yes (Claude Code, Sonnet 5.5)