proactive memory free, option for zerocopy (seems slower), track prepare times

This commit is contained in:
Stewart Allen 2020-11-26 08:48:19 -05:00
commit 4da43685f4
8 changed files with 91 additions and 19 deletions

View file

@ -367,7 +367,7 @@
// notify progress
layerout.layer = layer++;
update((layer / maxLayers) * 0.5);
update((layer / maxLayers) * 0.5, "prepare");
// retract after last layer
if (layer === maxLayers && layerout.length) {
@ -381,7 +381,7 @@
print.output = output;
print.render = FDM.prepareRender(output, progress => {
update(0.5 + progress * 0.5);
update(0.5 + progress * 0.5, "render");
}, { tools: device.extruders, thin: isThin, flat: isFlat, fdm: true });
return print.render;
};