Skip to content

Commit

Permalink
cleanup: note about frame request in iced-sctk
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Jun 15, 2023
1 parent 9d242fb commit c308e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c308e22

Please sign in to comment.