Laggy simulation help

hi, does anyone know why my simulation is so laggy? is there a way to optimise to make it work smoother?
OPC UA - signali - Copy.vcmx (48.1 MB)

Have you done the usual checks?

The speed monitoring script on the robots might be one of the bottlenecks. It makes controller update its state 100 times per second (heartbeat 0.01s) and also the script works at that high frequency. VC simulation performance usually relies on things updating their state only when needed and this kind of forced high frequency sampling can cause the sim the run significantly slower.

-k