Fix first layer speed and layer slow down handling with rafts#13224
Merged
Conversation
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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adjust initial layer speed and slow down layer speed logic to correctly account for raft layers.
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):

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

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

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.