Skip to content

Commit d79d64e

Browse files
abaye123Y-PLONI
authored andcommitted
Disable Impeller on Windows to restore startup time
Since Flutter 3.47 Impeller is the default renderer on Windows. On engine start it builds every pipeline up front, and ANGLE translates and compiles each shader to HLSL on the CPU with no persistent cache. This blocks the platform thread inside CreateViewController and delays the first visible frame by roughly 1.8s on every launch. Switch the runner back to Skia, matching the behavior the app shipped with on Flutter 3.44. Impeller can be re-enabled once flutter/flutter#191860 or flutter/flutter#193066 lands in a stable release. Fixes Otzaria#1565
1 parent 8c4f542 commit d79d64e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎windows/runner/main.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
335335
}
336336

337337
flutter::DartProject project(L"data");
338+
// Impeller compiles every shader through ANGLE before the first frame, with
339+
// no disk cache: ~2s on each launch (#1565, flutter/flutter#191860).
340+
project.set_impeller_switch(flutter::ImpellerSwitch::Disabled);
338341

339342
std::vector<std::string> command_line_arguments =
340343
GetCommandLineArguments();

0 commit comments

Comments
 (0)