The G-code export was reshuffled a bit to reduce peak memory consumption.

Namely, the time estimate memory is released before the G-code
preview data is created from the G-code analyser data.
This commit is contained in:
bubnikv 2018-12-18 17:34:21 +01:00
parent e2d7fd941f
commit 8bc04e640a
2 changed files with 23 additions and 19 deletions

View file

@ -180,7 +180,7 @@ public:
static void append_full_config(const Print& print, std::string& str);
protected:
void _do_export(Print &print, FILE *file, GCodePreviewData *preview_data);
void _do_export(Print &print, FILE *file);
// Object and support extrusions of the same PrintObject at the same print_z.
struct LayerToPrint