d3d12_xs: keep the Win32 PresentX window responsive during rendering #526
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!526
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/526/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?
@Rain156 on GitHub · 2026-11-24 06:57 UTC · original
Rain156:fix/windows-present-window-pump→main· +2317 −133 · 25 files · 21 commits · merged 2026-11-25 02:33 UTCClaimed 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.The coverage gate asks for every queue slot to have been called, and skips the overridden ones in its sweep of the refused tail. Slot 32 is overridden since the PresentX wiring, so nothing called it and the gate failed ("queue slot 32 never called"). The test now calls it where it calls the console ExecuteCommandLists slot: this build of the proxy has no presenter, so the answer is S_OK. Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_01HxBQf4pXH8PWpC5oZsM4btlatencyframes in flight while armed (mailbox replace) #671@DesertGamer on GitHub · 2026-11-24 13:32 UTC · original
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)