diff --git a/src/libslic3r/libslic3r.h b/src/libslic3r/libslic3r.h index ec67e8b0f..1cf946f8b 100644 --- a/src/libslic3r/libslic3r.h +++ b/src/libslic3r/libslic3r.h @@ -21,7 +21,13 @@ #include "Technologies.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; +#endif + typedef double coordf_t; //FIXME This epsilon value is used for many non-related purposes: