OSX specific: Setting the QoS level to the highest level for TBB

worker threads: QOS_CLASS_USER_INTERACTIVE.
The one level lower QOS_CLASS_USER_INITIATED makes our tester Filip
unhappy, because when slicing tree supports Filip switches to a browser
on another display wating for the slicer to finish, while OSX moves
the slicing threads to high efficiency low coal burning cores.
This commit is contained in:
Vojtech Bubnik 2022-09-29 16:51:44 +02:00
parent 5f75d61d49
commit d3734aa5ae

View File

@ -249,7 +249,8 @@ void set_current_thread_qos()
#ifdef __APPLE__ #ifdef __APPLE__
// OSX specific: Set Quality of Service to "user initiated", so that the threads will be scheduled to high performance // OSX specific: Set Quality of Service to "user initiated", so that the threads will be scheduled to high performance
// cores if available. // cores if available.
pthread_set_qos_class_self_np(QOS_CLASS_USER_INITIATED, 0); // With QOS_CLASS_USER_INITIATED the worker threads drop priority once slicer loses user focus.
pthread_set_qos_class_self_np(QOS_CLASS_USER_INTERACTIVE, 0);
#endif // __APPLE__ #endif // __APPLE__
} }