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

Typically: "How do I... ", "How can I... " questions
Post Reply
MaJiamu
Posts: 28
Joined: 19 Jan 2021, 03:52

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

Post 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).

coppelia
Site Admin
Posts: 10649
Joined: 14 Dec 2012, 00:25

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

Post 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

MaJiamu
Posts: 28
Joined: 19 Jan 2021, 03:52

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

Post 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.

coppelia
Site Admin
Posts: 10649
Joined: 14 Dec 2012, 00:25

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

Post 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

Post Reply