Update Smithay and fix winit presentation time

This commit is contained in:
Ivan Molodetskikh
2023-09-04 15:09:58 +04:00
parent 9b4a8fed4f
commit 682182f363
4 changed files with 15 additions and 18 deletions
+2 -1
View File
@@ -24,8 +24,9 @@ impl FrameClock {
}
}
pub fn refresh_interval_ns(&self) -> Option<NonZeroU64> {
pub fn refresh_interval(&self) -> Option<Duration> {
self.refresh_interval_ns
.map(|r| Duration::from_nanos(r.get()))
}
pub fn presented(&mut self, presentation_time: Duration) {