Skip to content

Commit 1e17301

Browse files
authored
Disable Impeller on Linux (#2080)
Impeller became the default Linux renderer in Flutter 3.47. With the Mesa SVGA3D driver (VMware with 3D acceleration) it draws blank and partial frames, so the whole window flickers (flutter/flutter#192915). Release builds ignore FLUTTER_ENGINE_SWITCHES, so users cannot opt out themselves. Go back to Skia, the renderer used before 3.47.
1 parent 77b8484 commit 1e17301

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎linux/my_application.cc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ static void my_application_activate(GApplication *application) {
109109

110110
g_autoptr(FlDartProject) project = fl_dart_project_new();
111111
fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
112+
// Impeller (default on Linux since Flutter 3.47) draws blank and partial
113+
// frames on some Mesa drivers, e.g. SVGA3D in VMware (flutter/flutter#192915).
114+
// Release builds ignore --no-enable-impeller, so opt out here.
115+
fl_dart_project_set_enable_impeller(project, FALSE);
112116

113117
FlView* view = fl_view_new(project);
114118
gtk_widget_show(GTK_WIDGET(view));

0 commit comments

Comments
 (0)