mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-25 03:14:30 +08:00
Automatically detect the number of cores and use that as a default for threads number
This commit is contained in:
parent
83ad123d95
commit
dabb7cb2ee
@ -1,4 +1,5 @@
|
||||
#include "PrintConfig.hpp"
|
||||
#include <boost/thread.hpp>
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
@ -1247,7 +1248,7 @@ PrintConfigDef::PrintConfigDef()
|
||||
def->readonly = true;
|
||||
def->min = 1;
|
||||
def->max = 16;
|
||||
def->default_value = new ConfigOptionInt(2);
|
||||
def->default_value = new ConfigOptionInt(boost::thread::hardware_concurrency());
|
||||
|
||||
def = this->add("toolchange_gcode", coString);
|
||||
def->label = "Tool change G-code";
|
||||
|
Loading…
x
Reference in New Issue
Block a user