Commit 3c2bbdc1 authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #576: Spare a bit of memory by converting things to arrays

parent c178ad0c
......@@ -18,6 +18,7 @@
import time
import numpy
import array
import math
import logging
import threading
......@@ -638,6 +639,11 @@ class GcodeModel(Model):
self.normals.resize(normal_k, refcheck = False)
self.indices.resize(index_k, refcheck = False)
self.layer_stops = array.array('L', self.layer_stops)
self.count_travel_indices = array.array('L', count_travel_indices)
self.count_print_indices = array.array('L', count_print_indices)
self.count_print_vertices = array.array('L', count_print_vertices)
self.max_layers = len(self.layer_stops) - 1
self.num_layers_to_draw = self.max_layers + 1
self.loaded = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment