-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Support for requestAnimationFrame #1493
Copy link
Copy link
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?
Description
It's best to do all rendering on the web in requestAnimationFrame, but currently Winit does not respect this. Partly this is due to the API contract: request_redraw can't wait for the runtime to come back with a callback, because it must occur after the next MainEventsCleared.
A web-specific extension that produces RedrawRequested events is probably the way forward here, but I would be open to other ideas.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outDS - webAffects the Web backend (WebAssembly/WASM)Affects the Web backend (WebAssembly/WASM)S - enhancementWouldn't this be the coolest?Wouldn't this be the coolest?