PowerMill 2022 and newer allows calculations to be multi-threaded. Some newer computers will take longer to calculate with the latest type of calculations.
Issue
Splitting a calculation to spread across multiple cores can often speed up the calculation. The problem occurs when the calculation needs to be re-assembled, which can cause it to take longer. The other issue when using all cores for heavy calculations is that it can cause the PC to lock up and become unresponsive until completed.
Answer
Set the core allocation to restrict core usage
-
Click here to download the attached PowerMill macro "ChangeCPUtime.mac" to your local drive
-
Drag and drop the macro into a blank PowerMill interface
-
Enter the percentage of CPU time to use. The default is 100%
-
Click the green check mark
To change the CPU time again or to set it back to default
- Drag and drop the macro into a blank PowerMill interface
- Set the value and click the green checkmark
You should now see a reduction in CPU time for PowerMill's calculations. If you need to adjust this CPU time frequently, you can assign the macro to a button for quicker access.
See this article here for how to create a macro and assign it to a button.
Echo command for setting a percentage in a user macro
The below string will set the CPU time back to 100. Adjust this number to suit
$ResourceAllocation =100