mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
committed by
Kirill Chibisov
parent
487137b867
commit
501d9b4a44
@@ -48,3 +48,4 @@ changelog entry.
|
|||||||
|
|
||||||
- On X11, fix crash with uim.
|
- On X11, fix crash with uim.
|
||||||
- On X11, fix modifiers for keys that were sent by the same X11 request.
|
- On X11, fix modifiers for keys that were sent by the same X11 request.
|
||||||
|
- On iOS, fix high CPU usage even when using `ControlFlow::Wait`.
|
||||||
|
|||||||
@@ -375,6 +375,7 @@ impl AppState {
|
|||||||
(ControlFlow::Wait, ControlFlow::Wait) => {
|
(ControlFlow::Wait, ControlFlow::Wait) => {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
self.set_state(AppStateImpl::Waiting { waiting_handler, start });
|
self.set_state(AppStateImpl::Waiting { waiting_handler, start });
|
||||||
|
self.waker.stop()
|
||||||
},
|
},
|
||||||
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
|
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
|
||||||
if old_instant == new_instant =>
|
if old_instant == new_instant =>
|
||||||
|
|||||||
Reference in New Issue
Block a user