klipper/klippy/chelper
Kevin O'Connor 2e5802370c
Some checks failed
Build test / build (push) Has been cancelled
serialqueue: Tune MIN_REQTIME_DELTA timing
The MIN_REQTIME_DELTA parameter controls when the host will flush
incomplete message blocks to the mcu.  If the message had a target
time less than 250ms it would result in a flush even if a message
block was not completely full.

In the situation where the host generates lots of queue_step commands
to the point that it fills the mcu move_queue, then it would be
possible for individual queue_step commands to become eligible for
transmit only microseconds apart.  It could also lead to a situation
where the target time was less than 250ms in the future.  The result
could lead to many small message blocks as each became flushed
individually.

Tune the MIN_REQTIME_DELTA to 100ms to reduce the chance of this.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2025-12-03 17:47:50 -05:00
..
__init__.py stepcompress: Remove stepcompress_queue_msg() 2025-09-24 15:07:25 -04:00
compiler.h chelper: Add compiler.h header 2018-06-20 09:26:10 -04:00
itersolve.c itersolve: Don't call trapq_check_sentinels() from itersolve_generate_steps() 2025-09-24 18:58:31 -04:00
itersolve.h motion_queuing: Automatically detect changes to kin_flush_delay 2025-09-03 12:00:31 -04:00
kin_cartesian.c idex_modes: COPY and MIRROR mode implementation (#6297) 2023-08-01 12:23:52 -04:00
kin_corexy.c corexy: Convert step generation to use trapq system 2019-11-06 15:51:51 -05:00
kin_corexz.c corexz: Add CoreXZ kinematics (#3129) 2020-07-30 12:42:23 -04:00
kin_delta.c delta: Convert step generation to use trapq system 2019-11-06 15:51:51 -05:00
kin_deltesian.c kinematics: Add deltesian printers (#5743) 2022-09-01 15:56:31 -04:00
kin_extruder.c extruder: Allow dynamic adjustment of pressure advance (#6635) 2024-07-11 14:43:21 -04:00
kin_generic.c kinematics: Generic Cartesian kinematics implementation (#6815) 2025-05-06 18:06:36 -04:00
kin_idex.c kinematics: Generic Cartesian kinematics implementation (#6815) 2025-05-06 18:06:36 -04:00
kin_polar.c polar: Convert step generation to use trapq system 2019-11-06 15:51:51 -05:00
kin_rotary_delta.c rotary_delta: Initial support for rotary delta kinematics 2020-01-06 11:52:42 -05:00
kin_shaper.c input_shaper: Fixed initialization for dual_carriage 2025-10-06 15:41:22 -04:00
kin_winch.c winch: Convert step generation to use trapq system 2019-11-06 15:51:51 -05:00
list.h trapq: Extend trapq_extract_old() to also check active moves 2025-10-09 13:22:32 -04:00
msgblock.c msgblock: Add new clock_fill() function 2025-09-24 14:51:34 -04:00
msgblock.h msgblock: Add new clock_fill() function 2025-09-24 14:51:34 -04:00
pollreactor.c pollreactor: Move C pollreactor code from serialqueue.c to its own file 2021-06-09 18:58:35 -04:00
pollreactor.h pollreactor: Move C pollreactor code from serialqueue.c to its own file 2021-06-09 18:58:35 -04:00
pyhelper.c pyhelper: drop linux/prctl header for compability with musl 2025-09-03 11:44:10 -04:00
pyhelper.h pyhelper: define set_thread_name() helper 2025-08-01 12:42:53 -04:00
serialqueue.c serialqueue: Tune MIN_REQTIME_DELTA timing 2025-12-03 17:47:50 -05:00
serialqueue.h serialqueue: name the threads per mcu 2025-08-01 12:42:53 -04:00
stepcompress.c stepcompress: Remove stepcompress_queue_msg() 2025-09-24 15:07:25 -04:00
stepcompress.h stepcompress: Remove stepcompress_queue_msg() 2025-09-24 15:07:25 -04:00
steppersync.c itersolve: Don't call trapq_check_sentinels() from itersolve_generate_steps() 2025-09-24 18:58:31 -04:00
steppersync.h steppersync: Move step generation thread from stepcompress.c to steppersync.c 2025-09-24 15:07:25 -04:00
trapq.c trapq: Extend trapq_extract_old() to also check active moves 2025-10-09 13:22:32 -04:00
trapq.h toolhead: Keep stepcompress move history relative to current time (#6439) 2023-12-30 11:34:21 -05:00
trdispatch.c trdispatch: Support fast responses to trsync_state messages 2021-06-09 18:58:35 -04:00