Skip to content

Commit

Permalink
fix: default to ControlFlow::Wait for applications with no surface
Browse files Browse the repository at this point in the history
this seems to help CPU usage for app library and launcher
  • Loading branch information
wash2 committed Sep 25, 2023
1 parent cb51336 commit 6c1706b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,7 @@ where
if application.should_exit() {
break 'main;
}
let _ = control_sender.start_send(ControlFlow::Wait);
} else {
let mut needs_update = false;

Expand Down

0 comments on commit 6c1706b

Please sign in to comment.