mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
speed improvement
This commit is contained in:
parent
8385cddd8d
commit
6f38814541
@ -1081,7 +1081,8 @@ void Planner::_buffer_steps(const int32_t (&target)[XYZE], float fr_mm_s, const
|
||||
float max_stepper_speed = 0, min_axis_accel_ratio = 1; // ratio < 1 means acceleration ramp needed
|
||||
LOOP_XYZE(i) {
|
||||
const float cs = FABS((current_speed[i] = delta_mm[i] * inverse_secs));
|
||||
NOMORE(min_axis_accel_ratio, max_jerk[i] / cs);
|
||||
if (cs > max_jerk[i])
|
||||
NOMORE(min_axis_accel_ratio, max_jerk[i] / cs);
|
||||
NOLESS(max_stepper_speed, cs);
|
||||
#if ENABLED(DISTINCT_E_FACTORS)
|
||||
if (i == E_AXIS) i += extruder;
|
||||
|
Loading…
Reference in New Issue
Block a user