mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
@@ -228,3 +228,4 @@ changelog entry.
|
|||||||
- On Windows, fixed the event loop not waking on accessibility requests.
|
- On Windows, fixed the event loop not waking on accessibility requests.
|
||||||
- On X11, fixed cursor grab mode state tracking on error.
|
- On X11, fixed cursor grab mode state tracking on error.
|
||||||
- On X11, fixed crash with uim
|
- On X11, fixed crash with uim
|
||||||
|
- On iOS, maybe fixed high CPU usage even when using `ControlFlow::Wait`.
|
||||||
|
|||||||
@@ -239,6 +239,7 @@ impl AppState {
|
|||||||
(ControlFlow::Wait, ControlFlow::Wait) => {
|
(ControlFlow::Wait, ControlFlow::Wait) => {
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
self.set_state(AppStateImpl::Waiting { start });
|
self.set_state(AppStateImpl::Waiting { 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