Skip to content

Fix first layer speed and layer slow down handling with rafts#13224

Merged
SoftFever merged 1 commit into
OrcaSlicer:mainfrom
yogihybo:first-layer-above-raft-speed
Apr 22, 2026
Merged

Fix first layer speed and layer slow down handling with rafts#13224
SoftFever merged 1 commit into
OrcaSlicer:mainfrom
yogihybo:first-layer-above-raft-speed

Conversation

@yogihybo

@yogihybo yogihybo commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Description

Adjust initial layer speed and slow down layer speed logic to correctly account for raft layers.

  • improved the previous layer checks with object_layer_over_raft() function
  • make sure that the first layer infill speed actually applies
  • split the slow_down_layers interpolation into separate branches for configurations with and without rafts so the lerp uses the correct layer offset.
  • with the raft turned on, the slowdown layers only apply to the object layers not the raft layers
  • the first base layer of the raft is actually an "infill" layer so the speed is set by the first layer infill speed.

Also added a check for raft on the overhang speed slow down that was applying to the object layer that is directly over raft so that it is now excluded. This way the first layer above raft (which is actually a overhang as technically unsupported) doesn't revert to the slow down for overhangs speed limits and instead uses the first layer & first layer infill speed settings.

Screenshots/Recordings/Graphs

Without raft (works as expected):
image

With raft using previous code (didn't apply to layers above raft):
image

With raft using this change (now applies to layers above raft):
image

Tests

Test various extremes of number of raft layers and the number of slow down layers. Checked that speed for first layer and first layer infill work as expected.

Adjust initial- and slowdown-layer speed logic to correctly account for raft layers. Replace the previous layer checks with object_layer_over_raft(), simplify initial-layer speed selection, and split the slow_down_layers interpolation into separate branches for configurations with and without rafts so the lerp uses the correct layer offset. Also avoid applying overhang speed adjustments to object layers that are over rafts.
@ianalexis ianalexis added the enhancement New feature or request label Apr 15, 2026

@SoftFever SoftFever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you

@SoftFever SoftFever merged commit 5b05b61 into OrcaSlicer:main Apr 22, 2026
17 checks passed
Comment thread src/libslic3r/GCode.cpp
yogihybo added a commit to yogihybo/OrcaSlicer-Repetier that referenced this pull request Apr 30, 2026
Thanks to valerii-bokhan for picking this up in the previous commit:
OrcaSlicer#13224
yogihybo added a commit to yogihybo/OrcaSlicer-Repetier that referenced this pull request Apr 30, 2026
Thanks to valerii-bokhan for picking this up in the previous commit:
OrcaSlicer#13224
valerii-bokhan pushed a commit to valerii-bokhan/OrcaSlicer that referenced this pull request May 1, 2026
Thanks to valerii-bokhan for picking this up in the previous commit:
OrcaSlicer#13224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants