From 66abc4f96103f708098fc978b3bbc1e9d916156c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Sat, 28 Feb 2026 12:28:27 +0100 Subject: [PATCH] Feat: less UI lag --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index bc06054..6013cce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -277,9 +277,6 @@ fn main() -> io::Result<()> { app.metrics.nudge_ms = nudge_us.load(Ordering::Relaxed) as f64 / 1000.0; } - let seq_snapshot = sequencer.snapshot(); - app.metrics.event_count = seq_snapshot.event_count; - app.flush_dirty_patterns(&sequencer.cmd_tx); app.flush_dirty_script(&sequencer.cmd_tx); app.flush_queued_changes(&sequencer.cmd_tx); @@ -288,6 +285,9 @@ fn main() -> io::Result<()> { app.audio.config.refresh_rate.millis(), ))?; + let seq_snapshot = sequencer.snapshot(); + app.metrics.event_count = seq_snapshot.event_count; + if had_event { match event::read()? { Event::Key(key) => {