Skip to content

Commit

Permalink
Core: do not combine time chunk with interval amortization chunking
Browse files Browse the repository at this point in the history
  • Loading branch information
jdupak authored and ppisa committed Dec 23, 2024
1 parent ca0a918 commit 2dc5ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/machine/machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 2dc5ac4

Please sign in to comment.