game-loop
game-loop copied to clipboard
A Rust crate that implements a frame-rate-independent game loop.
I'd like to update `tao` to the latest version but could use some help as it looks like tao no longer contains the menu utilities. If anyone who is familiar...
- Closes #23 TBD: This was only tested on Windows. I'll mark this PR as a draft until further testing can be done.
Going by the using_winit.rs example in line 14 `event_loop.create_window` seems to be deprecated. What would be the way to use the latest winit version correctly?
Why is `window.request_redraw()` invoked [when handling `Event::AboutToWait`](https://github.com/tuzz/game-loop/blob/12982d8473c1bae083bb8fef5532173be9216b89/src/helper.rs#L81)? I believe it would be better done when handling `WindowEvent::RedrawRequested`. According to the winit docs on [`AboutToWait`](https://docs.rs/winit/latest/winit/application/trait.ApplicationHandler.html#method.about_to_wait): > This is not an ideal...