Browse Source
Merge pull request #8719 from Bob-the-Kuhn/2.0.x-planner-speed-improvement
[bugfix-2.0.x] minor planner.cpp speed improvement (follow up to COREXY stutter changes PR #8698)
pull/1/head
Bob-the-Kuhn
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
Marlin/src/module/planner.cpp
|
@ -1092,7 +1092,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
|
|
|
float max_stepper_speed = 0, min_axis_accel_ratio = 1; // ratio < 1 means acceleration ramp needed
|
|
|
LOOP_XYZE(i) { |
|
|
LOOP_XYZE(i) { |
|
|
const float cs = FABS((current_speed[i] = delta_mm[i] * inverse_secs)); |
|
|
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); |
|
|
NOLESS(max_stepper_speed, cs); |
|
|
#if ENABLED(DISTINCT_E_FACTORS) |
|
|
#if ENABLED(DISTINCT_E_FACTORS) |
|
|
if (i == E_AXIS) i += extruder; |
|
|
if (i == E_AXIS) i += extruder; |
|
|