Skip to content

Support for requestAnimationFrame #1493

@ryanisaacg

Description

@ryanisaacg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C - needs discussionDirection must be ironed outDS - webAffects the Web backend (WebAssembly/WASM)S - enhancementWouldn't this be the coolest?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions