mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Automatically detect the number of cores and use that as a default for threads number
This commit is contained in:
committed by
bubnikv
parent
70a9de085b
commit
9fbd135f14
@@ -1,4 +1,5 @@
|
|||||||
#include "PrintConfig.hpp"
|
#include "PrintConfig.hpp"
|
||||||
|
#include <boost/thread.hpp>
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
@@ -1291,7 +1292,7 @@ PrintConfigDef::PrintConfigDef()
|
|||||||
def->readonly = true;
|
def->readonly = true;
|
||||||
def->min = 1;
|
def->min = 1;
|
||||||
def->max = 16;
|
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 = this->add("toolchange_gcode", coString);
|
||||||
def->label = "Tool change G-code";
|
def->label = "Tool change G-code";
|
||||||
|
|||||||
Reference in New Issue
Block a user