Skip to content

Commit 0d0ff97

Browse files
committed
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 <[email protected]>
1 parent 35a0131 commit 0d0ff97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klippy/toolhead.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def set_junction(self, start_v2, cruise_v2, end_v2):
113113
self.cruise_t = cruise_d / cruise_v
114114
self.decel_t = decel_d / ((end_v + cruise_v) * 0.5)
115115

116-
LOOKAHEAD_FLUSH_TIME = 0.250
116+
LOOKAHEAD_FLUSH_TIME = 0.150
117117

118118
# Class to track a list of pending move requests and to facilitate
119119
# "look-ahead" across moves to reduce acceleration between moves.

0 commit comments

Comments
 (0)