mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 23:23:59 -06:00
Use about 40% less memory
This commit is contained in:
parent
c7b650b001
commit
4a9672bd88
2 changed files with 13 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue