Skip to content

Give the four overhang speeds a tooltip that matches how this fork reaches them (adapted from upstream #18038) - #1315

Open
alandebortolo wants to merge 1 commit into
Snapmaker:mainfrom
DesignMaster-Solutions:port-18038
Open

alandebortolo wants to merge 1 commit into
Snapmaker:mainfrom
DesignMaster-Solutions:port-18038

Conversation

@alandebortolo

Copy link
Copy Markdown

Adapted from OrcaSlicer#18038 (merged upstream 2026-11-30, author credited there).

Problem. In Process > Speed > Overhang speed, the four overhang speeds (overhang_1_4_speed .. overhang_4_4_speed) have no tooltip: theirs are commented out in src/libslic3r/PrintConfig.cpp. The line's own tooltip doesn't say where each speed is reached or that the speed blends between them, so hovering a field tells the user nothing.

Why not a straight port. Upstream OrcaSlicer#18038 also relabels the fields to 10-25%, 25-50%, 50-75% and 75-87%, because upstream reaches its speeds at 25/50/75/87% overhang. This fork uses a different table: overhang_overlap_levels({100, 90, 75, 50, 25, 0}) in GCode.cpp (around line 8189), with overhang_totally_speed at 0% overlap. In ExtrusionQualityEstimator::estimate_extrusion_quality each speed is reached at its level and the speed blends linearly between levels. So here the four speeds are reached at 10, 25, 50 and 75% overhang and the 100% speed at 100%: the current labels are already right, and the relabel would make them wrong. I kept the labels.

Change.

  • One shared tooltip on the four speeds, written for this fork's table: each speed is reached at the overhang on its label, the speed blends linearly from one to the next starting from the wall speed at 0%, the "100%" speed is used at 100% (the 75% speed holds if it is 0), a percentage is of the speed of the wall being printed, and 0 keeps the wall speed (the < 0.5 -> 100% branches in GCode.cpp).
  • The "Overhang speed" line in Tab.cpp shows the same tooltip (same one-line change as upstream).

Limits. Labels and tooltips only; G-code does not change. New translatable string, catalogs not regenerated. Built on Linux (WSL, Ubuntu): PrintConfig.cpp.o and Tab.cpp.o recompiled, snapmaker-orca linked, build rc=0 in 148 s; ctest 801/804, and the 3 failures (#96 Local-Z layer 66, #514 and #516 render_realtime_body) also fail on main, so they are not from this change. Not built on Windows or macOS, and the tooltip was not checked on screen.

…ches them

Snapmaker Orca reaches the overhang speeds at 10, 25, 50 and 75% overhang
(overhang_overlap_levels 100/90/75/50/25/0 in GCode.cpp) and blends linearly
between them, so the existing labels are right; only their tooltips were
commented out. The Overhang speed line now shows the same tooltip.

Adapted from OrcaSlicer#18038 (tooltip and Tab.cpp line); its
relabel to 10-25%/.../75-87% is not taken because upstream uses a different
level table.
Copilot AI balanced review requested due to automatic review settings December 1, 2026 01:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

An option-ID mismatch in Tab.cpp causes Speed page configuration reloads to throw std::out_of_range, preventing the page from loading.

1 open issue
What changed in this PR

Adds shared overhang-speed help text tailored to this fork’s speed thresholds, while preserving existing labels and G-code behavior.

Changes:

  • Gives all four overhang-speed fields a shared, translatable tooltip explaining interpolation, percentage values, and zero-value behavior.
  • Reuses that tooltip for the “Overhang speed” row.
File Description
src/​slic3r/​GUI/​Tab.cpp Uses the field tooltip for the overhang-speed row.
src/​libslic3r/​PrintConfig.cpp Defines and assigns the shared tooltip to all four speed fields.

Review effort: Balanced

Comment thread src/slic3r/GUI/Tab.cpp
optgroup->append_single_option_line("enable_overhang_speed", "speed_settings_overhang_speed#slow-down-for-overhang");
optgroup->append_single_option_line("slowdown_for_curled_perimeters", "speed_settings_overhang_speed#slow-down-for-curled-perimeters");
Line line = { L("Overhang speed"), L("This is the speed for various overhang degrees. Overhang degrees are expressed as a percentage of line width. 0 speed means no slowing down for the overhang degree range and wall speed is used") };
Line line = { L("Overhang speed"), optgroup->get_option("overhang_1_4_speed", 0).opt.tooltip };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants