Hello, the delay most likely comes from loading the network and setting up all the necessary simulation objects in memory. If you need to start a simulation repeatedly, you can avoid the overhead of network loading by calling traci.simulation.saveState and traci.simulation.loadState
regards, Jakob Am Sa., 30. Jan. 2021 um 23:15 Uhr schrieb . Abdullah <[email protected]>: > Hi all, > > I have two codes below. In traci_demo_v1, I have a loop that just starts > and closes a simulation and prints the time taken to do so. In windows, it > takes around 0.5 secs but when I check my task manager (Memory Usage.PNG > file attached below) I see only some memory use of 35MB and no disk usage. > So I was wondering why it takes so long to start or load a state (without > gui)? Is there any way to reduce this time? Also, in traci_demo_v2 I have a > simulation that runs for sometime with step-length 0.5. But when I measure > the time across traci.simulation.getDeltaT(), it takes from 0 to 0.001 > seconds rather than 0.5 seconds. So, I am a bit confused about how long it > actually takes for sumo to perform one simulation step? > > I am using SUMO v1.7. > > > -- > Thank you. > Abdullah > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
