-
Instead of
Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I've been told that this just doesn't work on certain platforms, but EventLoopExt on windows is a possibility. |
Beta Was this translation helpful? Give feedback.
-
So guess I'll try to emulate it. |
Beta Was this translation helpful? Give feedback.
-
"You are strongly encouraged to use run, unless the use of this is absolutely necessary." Alright |
Beta Was this translation helpful? Give feedback.
-
You may want to use |
Beta Was this translation helpful? Give feedback.
-
I am trying to achieve this in wasm. I know that winit doesn't allow creating multiple event loop, so I have to reuse the event loop somehow. However, after finish executing the first 1000 frames and the execution 'goes back' to JS side, I am not able to obtain the event loop object and reuse it for drawing frame 2000 - 3000. May I ask if there is any way to achieve this? 😭 Thank you very much! |
Beta Was this translation helpful? Give feedback.
You may want to use
run_return
for that and call for it from time to time. You can stop polling events onRedrawEventsCleared
.