Fix speed up during overhang slowdown when curled perimeters is enabled. (#9215)

This commit is contained in:
Ioannis Giannakas 2025-04-05 07:46:02 +01:00 committed by GitHub
parent 66a71d4db0
commit 7f913f1cc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -442,6 +442,10 @@ public:
};
float extrusion_speed = std::min(calculate_speed(curr.distance), calculate_speed(next.distance));
// ORCA: Clamp resulting speed to lowest of calculated speed based on the overhang values and the current speed
// Fixes bug where resulting overhang speed is higher than the current speed due to (for example) volumetric flow limits.
extrusion_speed = std::min(extrusion_speed, original_speed);
if(slowdown_for_curled_edges) {
float curled_speed = calculate_speed(artificial_distance_to_curled_lines);
extrusion_speed = std::min(curled_speed, extrusion_speed); // adjust extrusion speed based on what is smallest - the calculated overhang speed or the artificial curled speed