Electron merges GPU shader disk cache fix, cutting app startup time by ~400ms

DanielLockyer · x · 2026-09-21

Electron PR #54113 by Hona has been merged: it persists Skia-compiled GPU shaders to disk between launches. The author's demo shows 400ms saved on startup with only this change, affecting every Electron app including VS Code, Slack, Discord, and opencode.

Root cause: ElectronBrowserClient never answered the embedder's query for the GPU shader cache directory, so every shader Skia compiled for an app's UI was dropped instead of written to disk and recompiled on the next launch. The fix asks the embedder where to keep shader disk caches and only registers a cache for handles with a directory.

Original post →

More from Infra

Infra channel →