Page 1 of 1

How to reduce the time of ‘Simulation scripts called’.

Posted: 25 Oct 2024, 11:50
by MaJiamu
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’.

Posted: 25 Oct 2024, 14:06
by coppelia
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’.

Posted: 26 Oct 2024, 02:46
by MaJiamu
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
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.

Re: How to reduce the time of ‘Simulation scripts called’.

Posted: 30 Oct 2024, 08:25
by coppelia
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