How to reduce the time of ‘Simulation scripts called’.
How to reduce the time of ‘Simulation scripts called’.
Hello, in the main interface of CoppeliaSim, there is a property called “Simulation scripts called”, what should I do to reduce this value during motion simulation? For example 10ms (some default .ttm in Model browser) instead of 60ms (in my simulation).
Re: How to reduce the time of ‘Simulation scripts called’.
Hello,
you need to find the bottleneck in your scene. Are you running Lua or Python scripts? Are you running threaded or non-threaded scripts? Are you heavily using vision or physics? What CoppeliaSim version are you running? Which model are you talking about?
Cheers
you need to find the bottleneck in your scene. Are you running Lua or Python scripts? Are you running threaded or non-threaded scripts? Are you heavily using vision or physics? What CoppeliaSim version are you running? Which model are you talking about?
Cheers
Re: How to reduce the time of ‘Simulation scripts called’.
Thanks for your reply. It seems that it has lots of connection with other things. The simulation is running in Lua, threaded scripts, without vision, v4.6, dynamic enabled, and the simulation model is similar to ACM-R5.coppelia wrote: ↑25 Oct 2024, 14:06 Hello,
you need to find the bottleneck in your scene. Are you running Lua or Python scripts? Are you running threaded or non-threaded scripts? Are you heavily using vision or physics? What CoppeliaSim version are you running? Which model are you talking about?
Cheers
Re: How to reduce the time of ‘Simulation scripts called’.
Try to identify what takes most simulation time. If it is e.g. vision, then you can try to acquire images less frequently by setting the vision sensors to explicit handling then explicitly calling sim.handleVisionSensor upon then when a new image is required, which might be much less frequent than the simulation loop (20 Hz)
Cheers
Cheers