From 2dc5ac44f04c2dcbc98e13a5415645050e769bd8 Mon Sep 17 00:00:00 2001 From: Jakub Dupak Date: Mon, 23 Dec 2024 20:28:32 +0100 Subject: [PATCH] Core: do not combine time chunk with interval amortization chunking --- src/machine/machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/machine/machine.cpp b/src/machine/machine.cpp index 5dcb522d..7eec81b0 100644 --- a/src/machine/machine.cpp +++ b/src/machine/machine.cpp @@ -391,13 +391,13 @@ void Machine::step() { } void Machine::step_timer() { - if (run_t->interval() == 0) { + if (run_t->interval() == 0 && time_chunk == 0) { // We need to amortize QTimer event loop overhead when running in max speed mode. for (size_t i = 0; i < 32 && stat == ST_RUNNING; i++) { step_internal(); } } else { - step_internal(); + step_internal(); } }