x11/window: take render time into account when computing next frame time
This commit is contained in:
parent
c26507c322
commit
d5c3ba0bb0
|
@ -237,7 +237,7 @@ impl Window {
|
|||
let until_next_frame = if now > next_frame {
|
||||
handler.on_frame();
|
||||
|
||||
next_frame = now + self.frame_interval;
|
||||
next_frame = Instant::now() + self.frame_interval;
|
||||
self.frame_interval
|
||||
} else {
|
||||
next_frame - now
|
||||
|
|
Loading…
Reference in a new issue