mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-17 10:55:54 +08:00
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:
parent
c8a0c2e469
commit
b2138dd348
@ -269,7 +269,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__
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user