From 6c1706b007fdcfcaf2fa9da65f8fd0d954805d2b Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 25 Sep 2023 17:57:24 -0400 Subject: [PATCH] fix: default to ControlFlow::Wait for applications with no surface this seems to help CPU usage for app library and launcher --- sctk/src/application.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sctk/src/application.rs b/sctk/src/application.rs index ca2f91102e..9f6d5cdfdc 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -946,6 +946,7 @@ where if application.should_exit() { break 'main; } + let _ = control_sender.start_send(ControlFlow::Wait); } else { let mut needs_update = false;