Skip update on RedrawRequested if not needed
This commit is contained in:
parent
859d6bb972
commit
7086fa2168
1 changed files with 45 additions and 42 deletions
|
|
@ -853,6 +853,7 @@ async fn run_instance<P>(
|
||||||
break state;
|
break state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !messages.is_empty() {
|
||||||
let caches: FxHashMap<_, _> =
|
let caches: FxHashMap<_, _> =
|
||||||
ManuallyDrop::into_inner(user_interfaces)
|
ManuallyDrop::into_inner(user_interfaces)
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
@ -899,7 +900,9 @@ async fn run_instance<P>(
|
||||||
|
|
||||||
current_compositor = next_compositor;
|
current_compositor = next_compositor;
|
||||||
window = window_manager.get_mut(id).unwrap();
|
window = window_manager.get_mut(id).unwrap();
|
||||||
interface = user_interfaces.get_mut(&id).unwrap();
|
interface =
|
||||||
|
user_interfaces.get_mut(&id).unwrap();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
interface.draw(
|
interface.draw(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue