- in Tool Milling made sure that deleting the only tool will not crash the application

- added a new parameter in Preferences to control the number of processes created by the Pool() - more processes better performance but also a lot of memory consumed
- made sure that the display of messages in the Status Bar is done asap
This commit is contained in:
Marius Stanciu
2023-03-01 18:15:10 +02:00
parent 9d8852e611
commit 33de5314b1
7 changed files with 33 additions and 11 deletions

View File

@@ -634,7 +634,7 @@ class App(QtCore.QObject):
# ###########################################################################################################
# ###################################### CREATE MULTIPROCESSING POOL #######################################
# ###########################################################################################################
self.pool = Pool()
self.pool = Pool(processes=self.options["global_process_number"])
# ###########################################################################################################
# ###################################### Clear GUI Settings - once at first start ###########################
@@ -1564,7 +1564,7 @@ class App(QtCore.QObject):
"""
self.pool.close()
self.pool = Pool()
self.pool = Pool(processes=self.options["global_process_number"])
self.pool_recreated.emit(self.pool)
gc.collect()
@@ -2743,6 +2743,7 @@ class App(QtCore.QObject):
# is not printed over and over on the shell
if msg != '' and shell_echo is True:
self.shell_message(msg)
QtWidgets.QApplication.processEvents()
def info_shell(self, msg, new_line=True):
"""