Skip to content

Commit 2dc5ac4

Browse files
jdupakppisa
authored andcommitted
Core: do not combine time chunk with interval amortization chunking
1 parent ca0a918 commit 2dc5ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/machine/machine.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,13 @@ void Machine::step() {
391391
}
392392

393393
void Machine::step_timer() {
394-
if (run_t->interval() == 0) {
394+
if (run_t->interval() == 0 && time_chunk == 0) {
395395
// We need to amortize QTimer event loop overhead when running in max speed mode.
396396
for (size_t i = 0; i < 32 && stat == ST_RUNNING; i++) {
397397
step_internal();
398398
}
399399
} else {
400-
step_internal();
400+
step_internal();
401401
}
402402
}
403403

0 commit comments

Comments
 (0)