Commit Graph
3 Commits
Author SHA1 Message Date
Neo a5f00c4138 Small Loop Memory Optimizations (#11887)
# Description
### `src/libslic3r/PrintApply.cpp` changes (line 318)
Change `const auto` to `const auto&` for loops (simple optimization) .


### `src/slic3r/Utils/CalibUtils.cpp` changes (lines 762, 766, 779, 783/784, 814, 816, 831, 835, 837, 1001)
Define config_pattern
`const auto& config_pattern = SuggestedConfigCalibPAPattern();` (line 762 and 814)

Replace calls of `SuggestedConfigCalibPAPattern()` with `config_pattern` (lines 766, 775, 779, 783, 784, 816, 831, 835, 837)

Change `const auto` to `const auto&` for loops (simple optimization) (lines 816, 835, 837, 1001)

*Also gets rid of the five compiler warnings out of the few hundred/thousand (when building the entire project) that warn about copying loop variables*
i.e.
```/home/neo/git/OrcaSlicer-EDIT-TEMP/src/slic3r/Utils/CalibUtils.cpp:828: note: use reference type to prevent copying
/home/neo/git/OrcaSlicer-EDIT-TEMP/src/slic3r/Utils/CalibUtils.cpp:832: warning: loop variable ‘opt’ creates a copy from type ‘const std::pair<std::__cxx11::basic_string<char>, int>’ [-Wrange-loop-construct]
  832 |     for (const auto opt : SuggestedConfigCalibPAPattern().int_pairs) { print_config.set_key_value(opt.first, new ConfigOptionInt(opt.second)); }
```
## Tests
Should have no functional difference. Contains optimizations, calibrations appear to still function well.
2026-01-15 22:09:30 +08:00
Neo eb72dce9aa Fix typo in filament_sbs_template.json (#11837)
Lowered hot_plate_temp from 5705 to a reasonable 70 degrees. 

(should be 60-90 degrees according to sources, made it the same as the first layer bed temp)
2026-01-06 08:34:34 +00:00
neo-jayfeather af9688e619 Small Printer Thumbnail Orientation and Typo Fixes (#11807)
# Description
- Centered P2S image and removed unnecessary padding (different source image). 
- Renamed Ginger Additive G1 (ginger --> Ginger, no image change).
- Renamed Magic maker hj SK (sk --> SK, no image change).
- Renamed Wondermaker ZR Ultra S (ULtra --> Ultra, no image change). 
- Replaced Geeetech A10M (to hide spool on top, better framing)
- Edited M3D Enabler so the white background is transparent (same image, edited & cropped).

> [!NOTE]
> All images were edited using GIMP on Linux, are 240x240 px @ 144 dpi. 
> (and no AI was used for this description or image processing, if that matters)
# Screenshots/Recordings/Graphs
| Printer | Old | New |
|----|-----|----|
|P2S|<img width="373" height="203" alt="image" src="https://github.com/user-attachments/assets/49e441b0-b2bf-4ec4-b63d-a6a53736181a" /> | <img width="369" height="208" alt="image" src="https://github.com/user-attachments/assets/ce10d552-d238-453e-8ee0-d1382203c7e7" /> |
|Ginger Additive G1|<img width="185" height="221" alt="image" src="https://github.com/user-attachments/assets/d97998cb-7385-4cca-a747-05860b47ea0f" />|<img width="187" height="207" alt="image" src="https://github.com/user-attachments/assets/07054674-9358-4d50-9db1-690542d66ffb" />|
|Magic Maker hj SK|<img width="170" height="211" alt="image" src="https://github.com/user-attachments/assets/795dfb48-749b-4fbb-8005-49689a11fcc7" />|<img width="189" height="210" alt="image" src="https://github.com/user-attachments/assets/5d0f60d8-8c64-4881-baee-ee7089970c25" />|
|Wondermaker ZR Ultra S|<img width="171" height="208" alt="image" src="https://github.com/user-attachments/assets/40618ef8-ec2e-4dd8-8257-907dab1537eb" />|<img width="178" height="207" alt="image" src="https://github.com/user-attachments/assets/ba5ec44c-9aac-41f6-b8b4-8fd96edb489c" />|
|Geeetech A10 M|<img width="186" height="206" alt="image" src="https://github.com/user-attachments/assets/f5db21c0-e8e1-4f24-bdc7-ac46db8cd646" />|<img width="181" height="205" alt="image" src="https://github.com/user-attachments/assets/b008e2f6-4409-43d4-9463-4258e0b07be7" />|
|M3D Enabler|<img width="204" height="228" alt="image" src="https://github.com/user-attachments/assets/697f0c25-d4de-4e23-94e4-de78b57865cf" />|<img width="209" height="231" alt="image" src="https://github.com/user-attachments/assets/95dc6a0e-bb3d-4c63-bdef-0bdfb7209e50" />|

## Tests

No code was changed, so no logic was tested. I have tested the import UI and have made sure that the images follow previous standards (appears to be 240x240, 144 ppi).
2026-01-02 17:26:27 +08:00