From d3734aa5ae2acc07a4031b2678cbb07ed6af1efe Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 29 Sep 2022 16:51:44 +0200 Subject: [PATCH] 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. --- src/libslic3r/Thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/Thread.cpp b/src/libslic3r/Thread.cpp index 22d4cb419..ea9b60a47 100644 --- a/src/libslic3r/Thread.cpp +++ b/src/libslic3r/Thread.cpp @@ -249,7 +249,8 @@ void set_current_thread_qos() #ifdef __APPLE__ // OSX specific: Set Quality of Service to "user initiated", so that the threads will be scheduled to high performance // 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__ }