heissgetraenk / fcmcua

FreeCAD Motion Control Workbench: Link a motion controller to a FreeCAD assembly using OPC UA
GNU General Public License v3.0
13 stars 4 forks source link

Performance settings suggestions #35

Open DagUd opened 1 year ago

DagUd commented 1 year ago

Very nice project ! I'm testing this project with a Siemens plc. Is working correctly but the performance are slow on a I7 12700K with 32GB and quadro 2000 video adapter. Do you have some suggestion about freecad settings for improve performances ? Thank you

heissgetraenk commented 1 year ago

Fcmcua relies heavily on the recompute functionality of FreeCAD, which took most of the time of each update cycle in my testing. I have seen a lot of discussion about the performance of that mechanic, like this discussion on multithreading occ. I am hoping the performance will improve in future releases of FreeCAD.

Since the recompute is a CPU heavy task, you could look into the following:

For reference: In my testing I had compute times of around 100ms or ~10 Fps of which the recompute command made up ca. 80ms.