Skip to content

Commit c308e22

Browse files
committed
cleanup: note about frame request in iced-sctk
1 parent 9d242fb commit c308e22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sctk/src/application.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,8 +1179,8 @@ where
11791179
Some((*id, surface, interface, state))
11801180
}) {
11811181
// request a new frame
1182-
// NOTE Ashley: this is done here only after a redraw
1183-
// to prevent more events from being produced after repeatedly requesting redraws
1182+
// NOTE Ashley: this is done here only after a redraw for now instead of the event handler.
1183+
// Otherwise cpu goes up in the running application as well as in cosmic-comp
11841184
if let Some(surface) = state.frame.take() {
11851185
surface.frame(&queue_handle, surface.clone());
11861186
surface.commit();

0 commit comments

Comments
 (0)