Compile with 32bit coord_t by default.

This commit is contained in:
bubnikv 2020-03-25 14:34:51 +01:00
parent c27297f6cc
commit 4656102dba

View file

@ -21,7 +21,13 @@
#include "Technologies.hpp" #include "Technologies.hpp"
#include "Semver.hpp" #include "Semver.hpp"
#if 1
// Saves around 32% RAM after slicing step, 6.7% after G-code export (tested on PrusaSlicer 2.2.0 final).
typedef int32_t coord_t;
#else
typedef int64_t coord_t; typedef int64_t coord_t;
#endif
typedef double coordf_t; typedef double coordf_t;
//FIXME This epsilon value is used for many non-related purposes: //FIXME This epsilon value is used for many non-related purposes: