GitHub issue #66221 in zed-industries/zed, opened 2026-10-27 by Elitelord, records a report that minimizing a GPUI window on Windows does not lower CPU: per-thread sampling shows the main thread keeps running at the display rate while the window is minimized; gpui-kit hello_world (static) measured 2.08% visible vs 3.44% minimized and a task-manager UI 3.91% vs 3.36% (medians of 3 runs, % of one core over 20 s, Ryzen AI 9 HX 370, Windows 11 26200), while an egui build of the same task-manager UI drops from 1.98% to 0.42% when minimized; the report traces it to the VSyncProvider thread calling RedrawWindow(RDW_INVALIDATE) on every window after every vblank, and notes a proposed fix skipping hidden and minimized windows cut the task-manager UI's minimized CPU to 0.70% (from 3.36%) in the author's test. System cited: GPUI 0.3.10 from crates.io, release builds.
Verbatim Excerpts from Cited Records
“minimizing doesn't lower CPU at all. Per-thread sampling shows the main thread keeps running at the display rate while the window is minimized:”
·
zed-industries/zed (issue 66221 opening body, Current vs. Expected behavior section)
·
2026-10-27T19:01:00Z
·GitHub Issue ↗
“Medians of 3 runs, % of one core over 20 s, Ryzen AI 9 HX 370, Windows 11 26200. For comparison, an egui build of the same task-manager UI drops from 1.98% to 0.42% when minimized.”
·
zed-industries/zed (issue 66221 opening body, Current vs. Expected behavior section)
·
2026-10-27T19:01:00Z
·GitHub Issue ↗
“It already checks `IsWindowVisible` and `IsIconic`, but only to decide whether to record the frame signal. The invalidate runs either way, so each minimized window still gets a `WM_PAINT` on every vsync.”
·
zed-industries/zed (issue 66221 opening body, Cause section)
·
2026-10-27T19:01:00Z
·GitHub Issue ↗
“No GPUI frame runs, because `handle_size_msg` moves the frame callback aside while minimized and `draw_window` returns early. But each `WM_PAINT` goes through the message loop and `DefWindowProcW`, which costs more than a no-change frame check costs while visible.”
·
zed-industries/zed (issue 66221 opening body, Cause section)
·
2026-10-27T19:01:00Z
·GitHub Issue ↗
Counter-record: Issue open as of the fetch; 6 comments were read. zed-community-bot[bot] flagged the report as a possible duplicate of #64388 (X11 backend reporting a minimized window as Visible and continuing to request frames); the author replied the two are related but not duplicates because the cause and the fix sit in different backends, and yeskunall confirmed the Windows code check and agreed it is separate from #64388's X11 visibility detection, while asking the author to distinguish WM_PAINT deliveries from frame-callback invocations; the author then measured and confirmed the frame callback never runs while minimized. kidoman (2026-11-08) reported hitting the same on a 240 Hz display and shipping a patched gpui-pre-windows, offering a PR; 3Nya3 (2026-11-21) reported the same on a 240 Hz display and noted the cost is not limited to minimized windows. No maintainer response or fix appears in the surveyed thread. The claim documents only the original report, not a verified current state.
Falsification probe: If GitHub issue #66221 is deleted without archive, if the author edits the opening body so the quoted sentences no longer match verbatim, or if the author posts a retraction of the report, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.