autowarefoundation / AWSIM-Labs

Open source simulator for self-driving vehicles
https://autowarefoundation.github.io/AWSIM-Labs/
Other
13 stars 10 forks source link

Traffic simulation is struggling to simulate when there are lots of NPC's #110

Open mozhoku opened 2 months ago

mozhoku commented 2 months ago

Simulation slows down when there are lots of NPC's in the scene.

WJaworskiRobotec commented 1 month ago

Please specify target number of NPCs @mozhoku that we would like to support and test

sasa42 commented 1 month ago

I really like this old ecs example for visual traffic and pedestrians. https://github.com/maajor/OSMTrafficSim

Probably it could be useful to solve some general performance issues. On my PC i can simulate around 50 but the framerate drops to 8fps.
The ecs example can run 10 000+ at high framerates.

Another paid Assets i tested.... https://assetstore.unity.com/packages/templates/systems/dots-traffic-city-220203

shows similar dots method.