Flutter & Dart (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
What is the Impeller Rendering Engine and how does it eliminate Shader Compilation Jank?
senior LevelSystem Design
In Simple Words: The legacy Skia rendering engine compiled GPU graphics shaders on-the-fly at runtime:
- The Jank Problem: The first time a complex animation or shadow appeared, Skia spent 20-50ms compiling the shader on the CPU, causing a visible dropped frame ("jank").
- Impeller (Default on iOS and modern Android):
- Ahead-Of-Time (AOT) Shader Precompilation: All shaders are pre-compiled at build time into platform-native GPU shaders (Metal on iOS, Vulkan on Android).
- Zero runtime shader compilation; guarantees steady 60fps / 120fps animations on first render!