Skip to content

Commit

Permalink
Libcosmic: Temporarily always animate at 120fps
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 6, 2023
1 parent e303247 commit 8254d7e
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(8)) // ~120FPS
} else {
Subscription::none()
}
Expand Down

0 comments on commit 8254d7e

Please sign in to comment.