autowarefoundation / AWSIM-Labs

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

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

Open mozhoku opened 3 months ago

mozhoku commented 3 months ago

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

WJaworskiRobotec commented 3 months ago

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

sasa42 commented 3 months 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.

lchojnack commented 1 month ago

I've started to work on this task. I'm exploring the posibility to use the ECS (Entity Component System) for traffic simulation.