From c308e2266867a7bb4dfadb2dc8bdf310b7c87ee8 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 14 Jun 2023 21:21:29 -0400 Subject: [PATCH] cleanup: note about frame request in iced-sctk --- sctk/src/application.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sctk/src/application.rs b/sctk/src/application.rs index aa01fb24f5..ecc83c6bad 100644 --- a/sctk/src/application.rs +++ b/sctk/src/application.rs @@ -1179,8 +1179,8 @@ where Some((*id, surface, interface, state)) }) { // request a new frame - // NOTE Ashley: this is done here only after a redraw - // to prevent more events from being produced after repeatedly requesting redraws + // NOTE Ashley: this is done here only after a redraw for now instead of the event handler. + // Otherwise cpu goes up in the running application as well as in cosmic-comp if let Some(surface) = state.frame.take() { surface.frame(&queue_handle, surface.clone()); surface.commit();