mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -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
				
			
		|  | @ -77,6 +77,9 @@ sub go { | |||
|     $self->status_cb->(60, "Generating horizontal shells..."); | ||||
|     $print->discover_horizontal_shells; | ||||
|      | ||||
|     # free memory | ||||
|     @{$_->surfaces} = () for @{$print->layers}; | ||||
|      | ||||
|     # combine fill surfaces to honor the "infill every N layers" option | ||||
|     $self->status_cb->(70, "Combining infill..."); | ||||
|     $print->infill_every_layers; | ||||
|  | @ -112,6 +115,9 @@ sub go { | |||
|         } | ||||
|     } | ||||
|      | ||||
|     # free memory | ||||
|     @{$_->fill_surfaces} = () for @{$print->layers}; | ||||
|      | ||||
|     # output everything to a GCODE file | ||||
|     $self->status_cb->(90, "Exporting GCODE..."); | ||||
|     $print->export_gcode($self->expanded_output_filepath); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci