Function cosmic::iced::runtime::window::frames

source ยท
pub fn frames() -> Subscription<(Id, Instant)>
Expand description

Subscribes to the frames of the window of the running application.

The resulting Subscription will produce items at a rate equal to the refresh rate of the first application window. Note that this rate may be variable, as it is normally managed by the graphics driver and/or the OS.

In any case, this Subscription is useful to smoothly draw application-driven animations without missing any frames.