Why Flutter replaced Skia with Impeller to eliminate first-frame shader compilation jank on mobile GPUs.
Skia is like a chef who doesn’t turn on the stove until a customer orders a hot soup, delaying the meal by 5 minutes. Impeller is a kitchen where the stove is pre-heated and broth is pre-simmered, serving the soup in 10 seconds flat.
Build step: Impeller offline shader compiler (impellerc) compiles GLSL into platform SPIR-V/Metal byte code
Shaders are bundled directly into the app binary
App startup: Shaders are loaded into GPU memory with zero runtime compilation delay
Runtime: Complex clipping, rounded rectangles, and blurs execute instantaneously
Output maintains rock-solid 60/120 FPS on iOS (Metal) and Android (Vulkan)
// Impeller Architecture: Ahead-of-Time Shader Compilation
// Old Skia:
// [First Animation Frame] -> [GPU Driver GLSL Compile (30-80ms)] -> [JANK!]
//
// New Impeller:
// [Build Time: impellerc] -> [Pre-compiled MSL / Vulkan Shaders]
// [Runtime Frame 1] -> [Immediate GPU Execution (0ms compilation delay)]Impeller completely eliminates the need for manual shader warm-up runs or sksl bundle recording profiles.