Speed increase test

This commit is contained in:
2026-04-11 00:13:51 +02:00
parent c21922e520
commit badf36eff9

View File

@@ -750,9 +750,7 @@ def main():
if current_target != g._current_step: if current_target != g._current_step:
direction = 1 if current_target > g._current_step else -1 direction = 1 if current_target > g._current_step else -1
steps_to_move = current_target - g._current_step steps_to_move = current_target - g._current_step
steps_to_move = max( steps_to_move = max(-5, min(5, steps_to_move))
-10, min(10, steps_to_move)
) # move up to 10 steps at a time
for _ in range(abs(steps_to_move)): for _ in range(abs(steps_to_move)):
g.step(direction) g.step(direction)
moved_any = True moved_any = True