Feat: less UI lag
This commit is contained in:
@@ -277,9 +277,6 @@ fn main() -> io::Result<()> {
|
|||||||
app.metrics.nudge_ms = nudge_us.load(Ordering::Relaxed) as f64 / 1000.0;
|
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_patterns(&sequencer.cmd_tx);
|
||||||
app.flush_dirty_script(&sequencer.cmd_tx);
|
app.flush_dirty_script(&sequencer.cmd_tx);
|
||||||
app.flush_queued_changes(&sequencer.cmd_tx);
|
app.flush_queued_changes(&sequencer.cmd_tx);
|
||||||
@@ -288,6 +285,9 @@ fn main() -> io::Result<()> {
|
|||||||
app.audio.config.refresh_rate.millis(),
|
app.audio.config.refresh_rate.millis(),
|
||||||
))?;
|
))?;
|
||||||
|
|
||||||
|
let seq_snapshot = sequencer.snapshot();
|
||||||
|
app.metrics.event_count = seq_snapshot.event_count;
|
||||||
|
|
||||||
if had_event {
|
if had_event {
|
||||||
match event::read()? {
|
match event::read()? {
|
||||||
Event::Key(key) => {
|
Event::Key(key) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user