From 3db4552b47fb9198c640d5b1973e2bb118c675bc Mon Sep 17 00:00:00 2001 From: 13r0ck Date: Mon, 5 Jun 2023 13:29:54 -0600 Subject: [PATCH] Temporarily always animate at 60fps Libcosmic needs to correctly expose a subscription to the display's refresh rate. --- src/timeline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline.rs b/src/timeline.rs index 182267c..b2c9b6f 100644 --- a/src/timeline.rs +++ b/src/timeline.rs @@ -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() }