mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-26 12:59:00 +00:00
Fix note about ControlFlow::Wait
This commit is contained in:
parent
83f72f61cd
commit
f43e33c15d
@ -37,7 +37,7 @@ fn main() {
|
|||||||
let mut last_frame = Instant::now();
|
let mut last_frame = Instant::now();
|
||||||
event_loop.run(move |event, _, control_flow| {
|
event_loop.run(move |event, _, control_flow| {
|
||||||
// Note we can potentially make the loop more efficient by
|
// 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!
|
// but be careful to test on all target platforms!
|
||||||
*control_flow = glutin::event_loop::ControlFlow::Poll;
|
*control_flow = glutin::event_loop::ControlFlow::Poll;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user