"Small area flow compensation" not working
Is there an existing issue for this problem?
- [x] I have searched the existing issues
Snapmaker_Orca Version
2.4.0
Operating System (OS)
Linux
OS Version
Win11
Additional system information
No response
Printer
U1
How to reproduce
Open any file, enable "Small area flow compensation" with default flow model.
Actual results
Neither in the preview nor in the gcode the flow compensation is added
Snapmaker Orca: 2.4.0
From AI: The on/off switch for small area flow compensation is a per-object setting. Before Orca decides whether to activate the feature, it has to load the object settings, and upstream OrcaSlicer does that step. Snapmaker Orca 2.4.0 skips it, so at the moment of the check the switch always reads as off. The feature is never activated, which means no compensation, no “Old Flow Value” comments and no change in the preview. That also explains why the preview looked the same the very first time you enabled it.
I checked Snapmaker’s current release_2.4.1 and main branches as well: the step is still missing in both. It’s a two-line fix (upstream adds m_config.apply(print.default_object_config()); and m_config.apply(print.default_region_config()); before the check in GCode::_do_export).
https://github.com/OrcaSlicer/OrcaSlicer/wiki/quality_settings_wall_and_surfaces#small-area-flow-compensation
Expected results
As in Orca Slicer 2.4.2
Project file & Debug log uploads
not needed
Checklist of files to include
- [ ] Log file
- [ ] Project file
Anything else?
No response
This reproduces on 2.4.1 final (Snapmaker Orca 2.4.1, macOS, command line), and the same test on OrcaSlicer 2.4.2 compensates.
Test piece: a 40 x 4 mm bar and a 30 x 30 mm plate, 1.2 mm tall (6 layers, all solid), one PLA head on the U1 0.4 profile, default model, gcode_comments on. I sliced it twice in each slicer, changing only small_area_infill_flow_compensation:
| switch off vs on | Old Flow Value comments with the switch on |
flow of solid infill lines of 2 mm or less, against lines of 10 mm or more | |
|---|---|---|---|
| Snapmaker Orca 2.4.1 | every G-code line is identical, comments aside | 0 | 100% at 0.5 mm (the model asks for 68%) |
| OrcaSlicer 2.4.2 | moves differ | 871 | 68% at 0.5 mm, 61% at 0.4 mm, 85% at 1.5 mm |
The settings block of the Snapmaker file says ; small_area_infill_flow_compensation = 1 with the default model, so the file contradicts its own block.
The cause given in the report matches the source. On main at f5fd7289e (Nov 4), GCode::_do_export creates the compensator only if (m_config.small_area_infill_flow_compensation.value && ...) (GCode.cpp line 2636), and I find no m_config.apply of the object settings before it in that function; the object settings are applied later, per layer. OrcaSlicer 2.4.2 has m_config.apply(print.default_object_config()); and m_config.apply(print.default_region_config()); just before the same check. I did not build the fork with those two lines, so I have not seen the fix work.
Since the short lines can be compared with the long ones in the file itself, this is checkable from the G-code alone. I added a text check to the U1 Dry Run tools: python3 tools/small_area_flow.py file.gcode (https://github.com/DesignMaster-Solutions/u1-dryrun/blob/main/tools/small_area_flow.py). On the 2.4.1 file it exits 1 with:
SMALL AREA FLOW: the switch is on, but 444 solid infill lines of 2 mm or less carry the full flow (100% of the long lines at 0.5 mm; the model asks for 68%).
and it exits 0 on the OrcaSlicer 2.4.2 file. Both sliced files are in the repository under examples/ (small-area-flow-orca-2.4.1.gcode.gz, small-area-flow-orcaslicer-2.4.2.gcode.gz).
What I did not do: nothing was printed, I did not slice in the GUI, I did not run 2.4.0 itself, and the two slicers do not use the same profile files (internal solid infill is rectilinear in the Snapmaker one and monotonic in the OrcaSlicer one; both are patterns the feature covers). The check leaves the first layer out and reads E as relative.
Root cause confirmed — your diagnosis matches the source exactly: small_area_infill_flow_compensation is a region config option, so apply_print_config() never sets it in m_config, and the compensator check in _do_export always sees the default (false).
Fix: _do_export now also applies default_object_config + default_region_config, matching upstream OrcaSlicer v2.4.2 exactly.
PR: https://github.com/Snapmaker/OrcaSlicer/pull/1195