Repository navigation
Conversation
A layer split into ~1000 colour fragments (a colour texture baked over a large top face) made several per-fragment loops redo whole-layer ClipperLib work, so slicing took ~33 min; it now takes ~3 min with the same output. - make_fills: clip the layer's no-overlap area to each expolygon's box before intersecting - discover_vertical_shells: small-piece filter compares only against the nearby part of the layer - bridge_over_infill: whole-layer union/diff/intersections restricted to the candidate's neighbourhood; fill boundary expanded once per spacing; anchor tree built only from lines crossing the scan range; bbox pre-check in the collision test; limiting outline taken directly instead of through expand(..., 0.3 * flow.spacing()), which offsets by 0.135 scaled units (flow.spacing() is in mm) and only cost a whole-layer pass per candidate
Same output, ~2.6 min for the LOTR map plate, was ~2.9.
Same output, ~2.2 min for the LOTR map plate, was ~2.6.
A colour texture baked at 0.1 mm / 2000k made the top layers thousands of islands and slicing never finished. Colour segmentation runs per island, the merge subtracts piece by piece, the support check tests only nearby islands, and the travel ordering finds crossings through a grid.
The merge took anything from 3 to 38 minutes at 0.1 mm / 2000k, now ~2.5. Every region is grouped with the islands it overlaps, so the result is the same.
ClipperLib slows down with the number of edges on a scan line, and a layer cut through a fine relief has tens of thousands of pieces. detect_surfaces_type ~50 s at 0.1 mm / 2000k, was ~145.
Only the slices within the deepest shell offset decide the result, so the work is done per tile of the face. Top and bottom segmentation ~130 s at 0.1 mm / 2000k, was ~180.
MultiPoint had no rvalue constructor, so the derived move constructors bound to the const reference and copied; append reserved exactly, so collecting pieces one by one was quadratic. Colour segmentation ~3 s at 0.1 mm / 2000k, was ~40, and ordinary prints gain too.
detect_surfaces_type, process_external_surfaces and the vertical shells each waited on their own heaviest layer in turn. The LOTR map plate slices in ~10.5 min at 0.1 mm / 2000k, was ~11.5; ~87 s at normal settings, was ~97.
Collecting every candidate within the radius into a vector cost more than the search itself. Same order, so the seams are unchanged; align_seam_points ~19.6 s at 0.1 mm / 2000k, was ~21.
bridge_over_infill's helper for splitting polygons by proximity named its locals near and far. The Windows headers define both as macros that expand to nothing, so "Polygons near;" declared nothing and the uses of it did not compile. Renamed; no behaviour change.
The Windows build stopped on test_kdtree.cpp: it calls std::iota without including <numeric>, which libstdc++ happens to pull in anyway. Added there, and the same for <limits> and <algorithm>/<cmath> where the recent changes rely on them being included by something else.
append(const ExtrusionEntity &) clones; the collection each island produced was deep-copied into the layer's loops and then thrown away. The no-overlap areas are moved as well.
Area alone would pass on a result whose pieces were merged across tiles or which kept the cut edges of the clip. The rings are compared after rotating each to its lowest point and sorting, so only the ordering is free. The fixture now also asserts it really is split into more than one tile, which is the path being tested.
The timings and the runs that never finished belong in the commit messages, where they can be read against the change; a reader of the code cannot check them. Kept the cost that still explains the design. MultiPoint also spells out the consequence: a moved-from Polygon or Polyline is now really empty where it used to silently keep its points. The two wall spacing comments the parallel loop reindented are plain ASCII now, so the whole file is.
Since main moved to Clipper2, parts of this branch no longer gave the same G-code as main: - bridge_over_infill dropped expand(limiting_area, 0.3 * flow.spacing()) as a no-op. The offset is below one unit, but Clipper2 still unites its result, which splits and merges touching polygons and so changes the anchor lines. Running it on the polygons next to the bridge gives main's anchors without the whole-layer pass. - tsp_remove_crossings stopped at the first repeated ordering, where main runs on to its pn * pn cap. The loop is periodic from that point, so it now takes only the steps to the ordering main stops on. - With a single tile, the tiled booleans now make the plain call instead of cutting the clip to the tile first. The tiled boolean test compared rings exactly. With the safety offset a tile unites only the clip polygons near it, and Clipper2 can then round a crossing 1 unit differently, so that case allows 1 unit. Comments that named ClipperLib now say Clipper, and docs/HLSD/polygon-clipping.md describes the tiled booleans. G-code of the five handy models in four configurations and of a baked texture relief is byte-identical to main. Colour-painted models still differ: segmenting each island on its own splits a colour's region into different pieces than one diagram over the layer, which on one model also changes the first layer's tool order.
# Conflicts: # src/libslic3r/PerimeterGenerator.cpp # src/libslic3r/PrintObject.cpp # src/libslic3r/Support/TreeSupport.cpp
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
…cer#16635) The fake printer counts the agent's close frame in its read handler, but Beast answers the close before that read completes, so stop() can return and the test can read the counter before it is incremented. On a loaded runner the check saw 0. Wait for the counter like the other fake-printer counters do, then keep the exact-count check.
2.4.0 to 2.4.2 wrote auto_drop on each build item, and 2.4.x objects carry no auto_drop attribute in model_settings.config. The importer only read the object attribute and treated a missing one as on, so floating objects were dropped to the bed on load and the flag was rewritten as on on the next save. Record object ids with an item auto_drop="0" and use that as the fallback when the object has no attribute. The attribute's presence is now tracked so the fallback applies only when it is absent. Any item set to off turns auto drop off for the object, since the flag is shared by all instances.
Test Results 7 files + 7 7 suites +7 1h 23m 30s ⏱️ + 1h 23m 30s For more details on these failures, see this check. Results for commit 8a7731b. ± Comparison against base commit d3699dd. ♻️ This comment has been updated with latest results. |
…16503) * Make the exclude-object outline tolerance configurable Signed-off-by: Sergei Rozhkov <zmod@zmod.link> * fix(config): move exclude_object_tolerance to developer mode Signed-off-by: Sergei Rozhkov <zmod@zmod.link> * fix(config): move exclude_object_tolerance to expert mode Signed-off-by: Sergei Rozhkov <zmod@zmod.link> * feat(ui): hide exclude_object_tolerance for non-Klipper firmwares mend Signed-off-by: Sergei Rozhkov <zmod@zmod.link> * Test that a larger exclude object tolerance writes fewer outline points Signed-off-by: Sergei Rozhkov <zmod@zmod.link> --------- Signed-off-by: Sergei Rozhkov <zmod@zmod.link>
…licer#16686) * Update GMP to 6.3.0 to Avoid the x18 Register on Apple Silicon GMP 6.2.1's arm64 assembly keeps loop counters in x18, which Apple reserves and macOS zeroes on every return to user space (syscalls, page faults, preemption). When that happens inside one of those loops the counter underflows and the routine walks the stack until the guard page: EXC_BAD_ACCESS / SIGBUS inside __gmpn_* whenever CGAL falls back to exact arithmetic (texture import boundary smoothing, text emboss cuts, mesh repair, mesh boolean). 6.3.0 moves those counters to ordinary temporaries (gmp-6.2 changeset f4ff6ff711ed); no x18 use remains under mpn/arm64. The GCC 15 patch applies unchanged apart from a line offset. The tarball comes from the GNU mirror, like MPFR. Windows is unaffected: MSVC copies the prebuilt libgmp-10 and the arm64 job stages MSYS2's GMP. Built with the deps recipe flags and ran make check on Linux x86_64 (clang 18, 200/200) and macOS arm64 (Apple clang, 199/199). * Add gmplib.org as a Fallback Download for GMP Same two-source pattern as MPFR: the GNU mirror first, the project's own server second, one hash for both. * Use the OrcaSlicer_deps Mirror as the GMP Fallback Download SoftFever published gmp-6.3.0.tar.xz in SoftFever/OrcaSlicer_deps, the same mirror 6.2.1 came from. Both sources serve the .tar.xz release file, byte-identical (one SHA-256): the GNU server first, the mirror as fallback. * Stage GMP 6.3.0 for the Flatpak Build The Flatpak sandbox has no network, so the manifest pre-downloads every dependency tarball into external-packages/. Point the GMP entry at the 6.3.0 .tar.xz the deps recipe now expects.
* Stop re-asking for plugin permissions granted in an earlier session * fix: Allow plugins to read the embedded Python stdlib --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
…aSlicer#16555) The tab switch queued a reload of the host's home page, which ran after the import URL and replaced it. Switch tabs synchronously first, then queue the import URL so it is the last page loaded.
…/button not appears or non functional (OrcaSlicer#16501) * sync instances on drop * fix sinking object not works while auto drop is off
Newer Qidi firmware for the Q2, Q2C, Plus 5 and Max 4 stores a slot's color as a hex list and its filament as a material id, and filament sync crashed on it. Each slot is now read in either form, the filament type comes from the box object, and any other JSON type error fails the sync instead of closing Orca.
…gs (OrcaSlicer#16600) The Printer and Filament title bars now toggle on mouse down instead of mouse up. Closing a dialog over a title bar could send it a stray mouse up, which folded the section. A double click is also bound so it still toggles twice, and Label passes double clicks to its parent.
…eset (OrcaSlicer#16708) * fix: install a plugin printer agent once it registers for the selected preset * fix: check for the pending printer agent after every plugin load
…er#16597) Placeholders that GCodeProcessor fills in after the G-code is generated (print_time_total_sec and the other print_time_* parts, used_filament_length, and the print statistics such as total_weight) hold a tag such as @TOTAL_WEIGHT@ while the template is evaluated. Multiplying one already failed with a type error. Adding a number joined the tag as text, so {total_weight + 5} printed 123.455 for a 123.45 g print, and a comparison compared the tag as text, so {if total_weight > 100} was always true. Neither gave an error. PlaceholderParser::set_deferred() now registers such a value. Printing it and joining it to text work as before. A calculation, a comparison, a regex or a condition on it fails with an error that says the value is known only after the G-code is generated, also after it was copied to a variable or through regex_replace(). Adding a number or another deferred value to one is treated as a sum and fails too. Text that already contains one joins a number as text, like any other string. filament_change() inside an {if} branch that is not taken now does nothing. It used to set the current extruder from an uninitialized value.
…reator 5 (OrcaSlicer#16687) Sets the exclude-object outline tolerance to 0.2 mm in the four AD5M and AD5M Pro base process profiles. Every AD5M, AD5M Pro, AD5X, Creator 5, Creator 5 Pro and Adventurer A5 process inherits it, and so do some Guider 4 processes. Fewer outline points let these Klipper printers fit more objects on a plate without the "Timer too close" error. Also bumps the Flashforge profile version.
…r#10147) (OrcaSlicer#15983) ref : seam gap tooltip
…rcaSlicer#16710) Don't log a parse error for a vendor profile pruned beside its cache Packaging deletes <vendor>.json for every vendor that ships a .opc cache, but installable_cache_version still read it to compare versions. Every packaged build logged a JSON parse error per installed vendor at startup. Check that the file exists first, as installed_vendor_version already does. The returned version does not change.
# Description Slicing performance work, split out of OrcaSlicer#14662 so it can be reviewed on its own. No new features and no behaviour change: the same G-code, produced faster. Nothing here knows about texture displacement. The trigger was a plate that took about 24 min to slice at 0.1 mm once a colour texture was baked onto it. The cause is general, not texture-specific: ClipperLib's sweep line costs grow with the number of edges crossing a scan line, and any layer cut into tens of thousands of small pieces (fine relief, dense colour painting, heavily fragmented models) makes several per-piece loops redo whole-layer work. ## What changed **Restrict whole-layer work to the neighbourhood that needs it** - `make_fills`: clip the layer's no-overlap area to each expolygon's box before intersecting. - `discover_vertical_shells`: the small-piece filter compares only against the nearby part of the layer. - `bridge_over_infill`: whole-layer union/diff/intersection restricted to the candidate's neighbourhood; fill boundary expanded once per spacing; anchor tree built only from lines crossing the scan range; bbox pre-check in the collision test. **Batch booleans by tile instead of per piece.** `ClipperUtils::tile_expolygons` groups a layer's pieces into tiles, so a huge clip contour is clipped once per tile rather than once per piece. `detect_surfaces_type` at 0.1 mm went from about 145 s to about 50 s. **Parallelize what is already independent:** a layer's regions in `detect_surfaces_type`, `process_external_surfaces` and `discover_vertical_shells`; wall generation and solid infill splitting; colour segmentation and vertical shells. **Stop copying polygons on move.** `MultiPoint` had no `Points &&` constructor, so every derived move constructor passing `std::move(points)` copied them. Added it, marked the moves `noexcept`, and made `append(vector&&)` move its elements. Note the consequence: a moved-from `Polygon` or `Polyline` is now really empty where it used to silently keep its points. **Seam placement.** `visit_nearby_points` visits candidates as the k-d tree finds them instead of collecting them into a vector first. **Travel ordering and sharp-tail detection** test only the pairs whose boxes can meet, through a uniform grid and a bbox pre-filter, instead of every pair. ## Results | | before | after | |---|---|---| | Painted plate, 0.1 mm, 2000k triangles | 1447 s | 587 s | | Same plate, default 750k | 99.5 s | 85.6 s | | Unpainted, 0.1 mm | 523 s | 430 s | ## Tests **179 of 179 G-code outputs byte-identical** across 11 models and 17 configurations (default, fine layers, zero and dense infill, no shells, normal and tree supports, extra bridge layers, interface shells, three `ensure_vertical_shell_thickness` modes, thick walls, spiral mode, five seam modes), comparing full library builds of this branch against its merge base. The painted plate is part of that matrix, and it is the case whose layers reach the tiling threshold at all. New unit tests: - `test_kdtree.cpp`: the visiting and collecting searches return the same points in the same order, and a radius search returns exactly the points inside the radius. - `test_clipper_utils.cpp`: the tiled and plain `diff_ex` and `intersection_ex` return the same rings with the same coordinates, with and without the safety offset, compared after rotating each ring to its lowest point and sorting. The fixture asserts it really is split into more than one tile, so it cannot quietly stop covering the tiled path.
The painting gizmos clip the selected instance at the plate, so a sinking object stopped at the bed with nothing to show how it continues below it, and the plate disappeared along with the bed mesh. Give every paint tool the same view of that region: - Draw the part of the selected instance below the plate at 50% opacity with depth writes off, so it reads as the object going through the plate. - Keep the plate and its grid while the bed mesh is hidden, instead of losing every reference plane in the scene. - Mark the plate intersection with a 0.4 mm outline rather than an opaque filled cap, which covered the model and hid the ghost from above. - Gate the bed mesh and the below-plate pass on the same predicate. Texture displacement derives from GLGizmoPainterBase like the other painters but was missing from the gizmo type list in is_bed_visible(), so it kept its bed. - Add GLVolume::simple_render()'s ban_color_volume so the ghost keeps its alpha for volumes with MMU segmentation facets, whose sub-models carry their own opaque filament colours, and stop gating the ghost on is_active: the colour painter marks the whole instance inactive and draws it in its own pass.
# Description OrcaSlicer crashed on launch whenever an enabled plugin finished loading before the main window was created, which is the usual case with locally installed plugins. This regressed in OrcaSlicer#16708: the check that installs a plugin's printer agent once it registers ran after every plugin load, including during the splash screen, before any window existed. The check now waits for the main window, where the startup preset load installs the selected agent anyway, and only runs for plugins that provide a printer connection, so agents that register late (the case OrcaSlicer#16708 fixed) are still installed without a preset change. No change to slicing output; plugins without a printer connection go back to only refreshing the printer agent list after they load. # Screenshots/Recordings/Graphs <!-- > Please attach relevant screenshots to showcase the UI changes. > Please attach images that can help explain the changes. --> ## Tests <!-- > Please describe the tests that you have conducted to verify the changes made in this PR. --> <!-- > A guide for users on how to download the artifacts from this PR. --> [How to Download Pull Requests Artifacts for Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
…cer#16675) Fix Moonraker connection threads outliving a destroyed printer agent connect_printer and disconnect_printer detached the in-flight connection thread, so the agent's destructor could not join it. On exit, clear_printer_agent_cache disconnects each agent and then destroys it, and a connection thread whose query succeeded afterwards used the freed agent. Each connection thread now joins the one it replaces, so the destructor's join waits for all of them. The server info and status queries are cancelled once their connection is superseded, so the wait is about a second at most. A superseded connection no longer writes its status into the next connection's cache or reports itself connected. clear_printer_agent_cache destroys the agents after releasing the registry lock, since destroying one now waits for its threads. Co-authored-by: Ian Chua <iancrb00@gmail.com>
Quit was only bound to Cmd+Q on macOS. Add a Quit entry to the shortcut registry bound to Ctrl+Q and handle it in the global key handler, so the shortcut reaches the app regardless of focus. The File menu shows it as display text. The macOS-only key check is removed; Cmd+Q now goes through the registry.
# Description Objects made of thousands of parts slice many times faster. Nearly all of their slicing time went into deciding which parts touch for the brim, and on macOS that cost was far higher, so an M5 Max took 2.5× longer than a Windows desktop on the painted city map from @raistlin7447 OrcaSlicer#15985 (comment). That model is one object with 6,948 parts. It now slices in under 21 s on both machines. | `painted_city_map.3mf`, CLI slice | main | this PR | |---|---|---| | macOS, Apple M5 Max | 265 s | 18.4 s | | Windows, Intel Core Ultra 7 270K Plus | 101.8 s | 20.1 s | No change to slicing output: the G-code is byte-identical to main's. # Screenshots/Recordings/Graphs <!-- > Please attach relevant screenshots to showcase the UI changes. > Please attach images that can help explain the changes. --> ## Tests G-code matches main's, apart from the timestamp line, for the city map on macOS and Windows and for four other projects on macOS (13 files in all). A new test checks that the brim groups an object's parts by contact: overlapping and touching parts share a group, and a part 0.5 mm away gets its own. It passes on main and on this branch, and so does the rest of the `fff_print` suite. <!-- > A guide for users on how to download the artifacts from this PR. --> [How to Download Pull Requests Artifacts for Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
Use flock instead of fcntl for the refresh token lock on POSIX. An fcntl lock is held per process, so a second thread took it without waiting, and closing that thread's fd released it for the first thread too. Another Orca instance could then send the same refresh token while the first one was still rotating it.
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
Move TextDataBase and prepare_volumes_to_slice() out of GLGizmoEmboss, and extract init_volume_text_lines(), load_wx_font() and get_installed_face_name() from it, so they can be used without the gizmo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A text part stored without its mesh, e.g. by a script that edited the 3mf, is now rebuilt from its text configuration and font when a project is loaded in the GUI. Font fallback, per-glyph lines and surface projection follow the emboss gizmo. The user is warned about placeholders, substituted fonts, and projected texts created flat. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thynix
force-pushed
the
rebuild-text-with-missing-mesh-standalone
branch
from
October 21, 2026 17:51
fc24953 to
8a7731b
Compare
❌ Profile Validation ErrorsLegacy Compatible Printers Map Out of DateRegenerate it: Fix the errors above and push a new commit. To reproduce this run locally: |
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.
This just exists for Claude Ultrareview accessibility