Fix note about ControlFlow::Wait

This commit is contained in:
dbr/Ben 2021-11-30 11:33:14 +11:00 committed by GitHub
parent 83f72f61cd
commit f43e33c15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ fn main() {
let mut last_frame = Instant::now();
event_loop.run(move |event, _, control_flow| {
// Note we can potentially make the loop more efficient by
// changing the `Poll` (default) value to `ControlFlow::Poll`
// changing the `Poll` (default) value to `ControlFlow::Wait`
// but be careful to test on all target platforms!
*control_flow = glutin::event_loop::ControlFlow::Poll;