Fix Magpie monotonic delta-time bug
This commit is contained in:
parent
7294c0402c
commit
4798d43f6c
|
@ -59,6 +59,7 @@ impl Window {
|
|||
let now = Instant::now();
|
||||
let dt = now.duration_since(self.last_update).as_secs_f32();
|
||||
self.panel.update(dt);
|
||||
self.last_update = now;
|
||||
}
|
||||
|
||||
pub fn draw(&mut self) {
|
||||
|
|
Loading…
Reference in New Issue