ENH: optimize speed of gcode export

Signed-off-by: salt.wei <salt.wei@bambulab.com>
Change-Id: Ic641352623f26c7241ae5720ad1baa202a1b00c7
This commit is contained in:
salt.wei 2023-03-02 20:30:47 +08:00 committed by Lane.Wei
parent 3448b7a053
commit 8669291aad
3 changed files with 30 additions and 1 deletions

View file

@ -76,6 +76,8 @@ static constexpr double BRIDGE_INFILL_MARGIN = 1;
//inline coord_t scale_(coordf_t v) { return coord_t(floor(v / SCALING_FACTOR + 0.5f)); }
#define scale_(val) ((val) / SCALING_FACTOR)
#define unscale_(val) ((val) * SCALING_FACTOR)
//BBS
static constexpr double SIMPLIFY_SLICES_RESOLUTION = 0.1;
//BBS: BBS only support relative E and can't been changed by user at the moment. because
//BBS need to support skip object when printing.