Skip to content

Commit

Permalink
Temporarily always animate at 60fps
Browse files Browse the repository at this point in the history
Libcosmic needs to correctly expose a subscription to the
display's refresh rate.
  • Loading branch information
13r0ck committed Jun 5, 2023
1 parent 5b96d61 commit 3db4552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ impl Timeline {
|| (track.0.end >= now.unwrap() && track.0.pause.is_playing())
})
{
cosmic::iced_runtime::window::frames()
cosmic::iced::time::every(Duration::from_millis(16)) // ~60FPS
} else {
Subscription::none()
}
Expand Down

0 comments on commit 3db4552

Please sign in to comment.