Skip to content

Windows: read the display's GPU vendor after the event loop is made - #774

Merged
Hona merged 1 commit into
devfrom
ib-3-vendor-later
Nov 12, 2026
Merged

Hona merged 1 commit into
devfrom
ib-3-vendor-later

Conversation

@Hona

@Hona Hona commented Nov 12, 2026

Copy link
Copy Markdown
Member

Follow-up to #757. Its thread read the display devices beside EventLoop::new, where winit makes its first window, and EnumDisplayDevicesW waits on the window manager's lock that window takes.

Per-step A/B, interleaved, release, visible desktop, tabs10, n=10 each, with temporary marks on both sides (ib-3-createmarks, ib-3-createmarks2):

Before #757-#760 #757-#760 (thread before EventLoop::new) This PR (thread after loop.built)
windows.launch → loop.built 4,294 µs 5,428 µs 4,425 µs
window.create → window.created 8,953 µs 6,241 µs 6,524 µs
Both 13,247 µs 11,669 µs 10,949 µs

The vendor is still read long before the first CPU frame needs it, about 25,000 µs later. cargo check -p rune --all-targets: no new warnings. No tests touched.

Started before EventLoop::new (#757), EnumDisplayDevicesW on its thread contended with winit's
first CreateWindowExW and made windows.launch -> loop.built 1,134 us slower (5,428 against 4,294,
p50, n=10). Started just after loop.built, it runs while the app sets up: +131 us there, and the
first window's path (loop + creation) is 10,949 us against 13,247 before #757-#760.
Copilot AI balanced review requested due to automatic review settings November 12, 2026 10:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit ea6ddf8 into dev Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants