diff --git a/lib/window.sdl.v b/lib/window.sdl.v index 7306d22..f2f85d7 100644 --- a/lib/window.sdl.v +++ b/lib/window.sdl.v @@ -553,7 +553,6 @@ pub fn (mut w Window) tick_and_render[T](mut ctx T) { fn (mut w Window) variable_update(dt f64) { w.timers.update(dt) - w.anims.update(dt) if w.mode == .ui { if w.timers.active() || w.anims.active() { w.refresh(w.refresh_config) @@ -561,7 +560,9 @@ fn (mut w Window) variable_update(dt f64) { } } -fn (mut w Window) fixed_update(dt f64) {} +fn (mut w Window) fixed_update(dt f64) { + w.anims.update(dt) +} pub fn (mut w Window) end_frame() { w.record_frame() // NOTE: Compiled out unless using `-d shy_record`