lukeparker.dev
10 min read

Your App Feels Awful on Windows (And the MacBook Blind Spots Killing It)

Chasing Windows startup stalls got my shader-cache fix merged into Electron itself, shaving ~400 ms off repeat launches in our Windows demo. Too bad everyone is about to rewrite to native on Rune anyway.

Most dev tools get built on MacBooks (especially in SF and startups). Windows gets a green CI check and shipped. Subsystem costs do not scale the same on Windows as macOS or Linux: what is free on a MacBook Air can stall a $6,000 Windows laptop for 5 seconds.

Notes from 154 public PRs (136 merged) across Electron, OpenCode, Rune, Cap, Hex, Bun, and Strobe. Exact numbers, no fluff.

Want to make your app faster on Windows? Paste this into your coding agent:

Read https://lukeparker.dev/your-app-feels-awful-on-windows/ and audit this repo for every Windows performance and reliability issue it covers (Defender, NTFS, GPU/VRAM, timers, tray/occlusion, process spawns, updates, Win32). Fix the highest-impact issues in focused PRs using quick single-run before/after sanity checks on Windows (ideally via Strobe: https://github.com/anomalyco/strobe; skip full interleaved paired runs during the sweep so it finishes fast). When done, report the total PR count, a markdown table with one row per PR and columns PR, Metrics, Before, and After (stacking every metric moved by a PR on separate lines inside its Metrics, Before, and After cells), and the Strobe command to run full paired benchmarks afterward for rigorous final numbers.

Also try this (I tack it onto most of my work):

For each PR as it is ready for review, ask opus 5.5 high and gemini 4 neon high to review. action any findings, then Merge.

Scoreboard

Different apps, machines, and workloads. Each row is one controlled comparison.

BottleneckBeforeAfterPR
New-build first frame (Defender)5,542 ms1,768 ms split / 184-321 ms seen launcheropencode-rune#953, #969
Post-install --version (dirty cache)1,330-1,454 ms17-24 msopencode-rune#997
Tab close sync storage (8 ops)41.88 ms med9 µs medopencode#47695
WGSL composite pipeline (FXC -> DXC)26,207 ms (5-run mean)255 ms (102.9x)Cap#2135
Electron Skia shader demobaseline (~480 ms GPU compile)~400 ms sooner (repeat)electron#54113
Tray idle (display GPU)584 MB private / 203 wakes/s229 MB / 74 wakes/shex#1223
Tray idle (drop ID3D12Device)229 MB / 219 MB VRAM / 71/s51 MB / 0 MB VRAM / 7/shex#1229
Hybrid GPU adapter select1,065 ms med54 ms medrune#625
MP4 export (15.6 ms timer)99.5-99.9 s (55 fps enc)30.9-31.2 s (224 fps enc)Cap#2439
MP4 readback yield-spin21.1-21.9 s (259 fps / 87% NVENC)19.8-20.5 s (294 fps / 97% NVENC)Cap#2450
Camera poll growth (60 runs)+53 thr / +3,858 hnd / +49 MB0 growthCap#2143
Untracked diff (257 files)28.4-34.0 s (783 git)0.34-0.36 s (17 git)opencode#53449
App update restart (closed)11.8 s1.4 sopencode#55933
Binary delta update (x64)68.75 MB full ZIP13.75 MB delta (-80%)opencode-rune#1748
Own-process thread walk (per walk)58-66 ms0.01-0.13 msrune#806
Occluded debug spinner CPU955 ms/s0-3 ms/srune#570

Defender

GPU & VRAM

Timers & Tray

Processes & Shells

Updates & NTFS

Win32 & Random Traps