From 1cb1415a5f1d3387194336fe2a191b4f498beb82 Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 5 Jun 2026 20:10:03 +0000 Subject: [PATCH 1/2] Desktop: Disable UI Accaleration by default on Linux --- editor/src/messages/preferences/preferences_message_handler.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/src/messages/preferences/preferences_message_handler.rs b/editor/src/messages/preferences/preferences_message_handler.rs index 591f9cf3a34..d4c8db3329f 100644 --- a/editor/src/messages/preferences/preferences_message_handler.rs +++ b/editor/src/messages/preferences/preferences_message_handler.rs @@ -65,6 +65,9 @@ impl Default for PreferencesMessageHandler { viewport_zoom_wheel_rate: VIEWPORT_ZOOM_WHEEL_RATE, ui_scale: UI_SCALE_DEFAULT, max_render_region_size: EditorPreferences::default().max_render_region_size, + #[cfg(target_os = "linux")] // TODO: Remove this once we have ui acceleration working more reliably on linux + disable_ui_acceleration: true, + #[cfg(not(target_os = "linux"))] // TODO: Remove this once we have ui acceleration working more reliably on linux disable_ui_acceleration: false, #[cfg(target_os = "macos")] vsync: false, From dc81cd4e03cad6b2cdc28cb55fdcc1e7de1da4a3 Mon Sep 17 00:00:00 2001 From: Timon Date: Fri, 5 Jun 2026 20:15:36 +0000 Subject: [PATCH 2/2] Review --- .../src/messages/preferences/preferences_message_handler.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/editor/src/messages/preferences/preferences_message_handler.rs b/editor/src/messages/preferences/preferences_message_handler.rs index d4c8db3329f..5dbe62231ed 100644 --- a/editor/src/messages/preferences/preferences_message_handler.rs +++ b/editor/src/messages/preferences/preferences_message_handler.rs @@ -65,10 +65,7 @@ impl Default for PreferencesMessageHandler { viewport_zoom_wheel_rate: VIEWPORT_ZOOM_WHEEL_RATE, ui_scale: UI_SCALE_DEFAULT, max_render_region_size: EditorPreferences::default().max_render_region_size, - #[cfg(target_os = "linux")] // TODO: Remove this once we have ui acceleration working more reliably on linux - disable_ui_acceleration: true, - #[cfg(not(target_os = "linux"))] // TODO: Remove this once we have ui acceleration working more reliably on linux - disable_ui_acceleration: false, + disable_ui_acceleration: cfg!(target_os = "linux"), // TODO: Set this back to false once we have ui acceleration working more reliably on linux #[cfg(target_os = "macos")] vsync: false, }