Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Do "ticking" inside glutin event loop #25

Open
jameshiew opened this issue Apr 23, 2020 · 0 comments
Open

Do "ticking" inside glutin event loop #25

jameshiew opened this issue Apr 23, 2020 · 0 comments

Comments

@jameshiew
Copy link
Owner

There is a Ticker::run func which runs a loop that calls a callback which then does rendering and calls event_loop.run_return to check for events such as key presses. A simple event_loop.run in the main thread could be used instead - the structure could match much more closely something like https://github.com/glium/glium/blob/master/examples/tutorial-01.rs

@jameshiew jameshiew changed the title Refactor program to do ticking inside glutin event loop Do "ticking" inside glutin event loop Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant