Skip to content

Commit

Permalink
default to ControlFlow::Wait
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Sep 26, 2023
1 parent 6c1706b commit 91cdf70
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions sctk/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,18 +1174,15 @@ where
redraw_request: Some(redraw_request),
} => {
match redraw_request {
crate::core::window::RedrawRequest::NextFrame => {
ControlFlow::Poll
}
crate::core::window::RedrawRequest::At(at) => {
ControlFlow::WaitUntil(at)
crate::core::window::RedrawRequest::NextFrame => {
ControlFlow::Wait
}
crate::core::window::RedrawRequest::At(at) => {
ControlFlow::WaitUntil(at)
}
}
}},
_ => if needs_update {
ControlFlow::Poll
} else {
ControlFlow::Wait
},
_ => ControlFlow::Wait,
});
}
redraw_pending = false;
Expand Down

0 comments on commit 91cdf70

Please sign in to comment.