Skip to content

Commit

Permalink
ios: fix timers
Browse files Browse the repository at this point in the history
Fixes #4074.
Fixes #3816.
  • Loading branch information
madsmtm authored Feb 6, 2025
1 parent 5e6350d commit 2230e71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/changelog/unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,4 @@ changelog entry.
- On Windows, fixed the event loop not waking on accessibility requests.
- On X11, fixed cursor grab mode state tracking on error.
- On X11, fixed crash with uim
- On iOS, maybe fixed high CPU usage even when using `ControlFlow::Wait`.
1 change: 1 addition & 0 deletions src/platform_impl/apple/uikit/app_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ impl AppState {
(ControlFlow::Wait, ControlFlow::Wait) => {
let start = Instant::now();
self.set_state(AppStateImpl::Waiting { start });
self.waker.stop()
},
(ControlFlow::WaitUntil(old_instant), ControlFlow::WaitUntil(new_instant))
if old_instant == new_instant =>
Expand Down

0 comments on commit 2230e71

Please sign in to comment.