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)
TSy
December 3, 2024, 9:23am
2
Have you done the usual checks?
This lesson introduces basic concepts to achieve the best possible simulation performance. The topics covered involve layout configuration, component modeling, python scripting, and simulation settings.
“Rebuild” rebuilds a component’s geometry and re-evaluates expressions. Generally, you only need to enable Rebuild if the property is used with features or expressions in a node. Otherwise, Rebuild is an unnecessary action.
This add-on checks all the properties within the components in your layout and turns off the unnecessary Rebuilds, so no property would rebuild on start or while running a simulation. As a result, the simulation start time and the laggings which are due to dynamic component …
This add-on brings the following buttons to your Home tab ribbon:
[image]
Profiling performance
With “Toggle Profiler OnOff” and “Dump Profiling info” one can view simulation performance-related indicators in the output panel and in a dumb csv file located in the command folder.
How to use performance profiling:
Enable profiling with the toggle button
Run the simulation for long enough duration with a high speed factor
Typically at least a duration until all processes have been comp…
keke
December 3, 2024, 9:34am
3
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