Skip update on RedrawRequested if not needed

This commit is contained in:
Héctor Ramón Jiménez 2025-10-15 21:59:13 +02:00
parent 859d6bb972
commit 7086fa2168
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -853,6 +853,7 @@ async fn run_instance<P>(
break state;
}
if !messages.is_empty() {
let caches: FxHashMap<_, _> =
ManuallyDrop::into_inner(user_interfaces)
.into_iter()
@ -899,7 +900,9 @@ async fn run_instance<P>(
current_compositor = next_compositor;
window = window_manager.get_mut(id).unwrap();
interface = user_interfaces.get_mut(&id).unwrap();
interface =
user_interfaces.get_mut(&id).unwrap();
}
};
interface.draw(