toolhead: Reduce LOOKAHEAD_FLUSH_TIME to 0.150 seconds

The current code is likely to perform a lazy flush of the lookahead
queue around 4 times a second.  Increase that to around 6-7 times a
second.  This change may slightly improve the responsiveness to user
requests mid-print (eg, changing extrusion ratio) and may make a
"print stall" less likely in some corner cases.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2025-09-30 19:32:49 -04:00
parent 50cb362234
commit 16fc46fe5f

View File

@@ -113,7 +113,7 @@ class Move:
self.cruise_t = cruise_d / cruise_v
self.decel_t = decel_d / ((end_v + cruise_v) * 0.5)
LOOKAHEAD_FLUSH_TIME = 0.250
LOOKAHEAD_FLUSH_TIME = 0.150
# Class to track a list of pending move requests and to facilitate
# "look-ahead" across moves to reduce acceleration between moves.