mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-16 20:22:51 +02:00
Use about 40% less memory
This commit is contained in:
1 parent
c7b650b001
commit
4a9672bd88
2 files changed
+13
No files matched your search
@@ -86,6 +86,9 @@ sub new_from_mesh {
|
||||
|
||||
# build surfaces from sparse lines
|
||||
$layer->make_surfaces($mesh->make_loops($layer));
|
||||
|
||||
# free memory
|
||||
$layer->lines(undef);
|
||||
}
|
||||
|
||||
# detect slicing errors
|
||||
@@ -244,7 +247,11 @@ sub detect_surfaces_type {
|
||||
(expolygon => $_, surface_type => $surface->surface_type),
|
||||
@$intersection;
|
||||
}
|
||||
|
||||
# free memory
|
||||
@{$layer->fill_boundaries} = ();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sub discover_horizontal_shells {
|
||||
|
||||
Reference in new issue
Block a user