Winit redraws, request vs set_poll. #424
Closed
marknefedov
announced in
Announcements
Replies: 1 comment
-
|
I think the Winit documentation is not very clear about it, this comment in the Rend3 project is quite enlightening: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm a complete newbie in this question.
In a lot of tutorials and example codes, I see that render is being performed in Event::RedrawRequested event, but according to Winit documentation continuously drawn apps, such as games should use control_flow.set_poll() and render inside Event::MainEventsCleared. Can anybody provide any information on this matter?
Reference from the docs.
Beta Was this translation helpful? Give feedback.
All reactions