From 74f00f9017781d193bca6142ce764b6dd32a0e6f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Mon, 5 Feb 2024 15:48:11 +0100 Subject: [PATCH] Turn repaint_on_widget_change off by default --- crates/egui/src/memory.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/memory.rs b/crates/egui/src/memory.rs index 8f4c8b169b8..8171b3be50d 100644 --- a/crates/egui/src/memory.rs +++ b/crates/egui/src/memory.rs @@ -186,7 +186,9 @@ pub struct Options { /// If any widget moves or changes id, repaint everything. /// - /// This is `true` by default. + /// It is recommended you keep this OFF, because + /// it is know to cause endless repaints, for unknown reasons + /// (https://github.com/rerun-io/rerun/issues/5018) pub repaint_on_widget_change: bool, /// This is a signal to any backend that we want the [`crate::PlatformOutput::events`] read out loud. @@ -221,7 +223,7 @@ impl Default for Options { zoom_factor: 1.0, zoom_with_keyboard: true, tessellation_options: Default::default(), - repaint_on_widget_change: true, + repaint_on_widget_change: false, screen_reader: false, preload_font_glyphs: true, warn_on_id_clash: cfg!(debug_assertions),