The file is 'B59-12V_asm.stp'. Is a 220MB STEP file, downloadable at
dropbox (it is possible to download it without the need to register, clicking on 'No thanks, continue to view'), and posted at
this forum's thread.
Here the script I have used to load the file and trigger the multithreading on windows
Code: Select all
#!/usr/bin/python
# -*- coding: utf-8 -*-
import time
FreeCAD.Console.PrintMessage("loading... \n")
t = time.time()
import ImportGui
#ImportGui.open(r"C:\Temp\B59-12V_asm.stp")
ImportGui.open("/home/mau/Downloads/B59-12V_asm.stp")
timeP = time.time() - t
FreeCAD.Console.PrintMessage("loading time = "+str(timeP) + "s\n")
Gui.SendMsgToActiveView("ViewFit")
timeD = time.time() - t - timeP
FreeCAD.Console.PrintMessage("displaying time = "+str(timeD) + "s\n")
(In the above code I've already changed the path from a win to a linux environment.)
A simple process of loading a big STEP file is triggering the multicore/multithreading on win.
In the previous post images, you can see that FC triggers 13 Threads and involves all 4 CPUs.
When running this code on Linux, unlikely I get only one core to 100% ...
I will post some screeenshots later on.