Open namdre opened 1 year ago
On windows, sumo-gui didn't use the dedicated graphics card by default. Setting this to be the "preferred adapter" made a huge FPS difference.
There is still a problem with dropped frames due to locking. This is quite noticeable when tracking a vehicle with 'show route' enabled. The simulation speed is fine but the gui refresh rate goes very low.
background: normally vehicles are only rendered when their current lane is in view and then only the currently drawn lane is locked against vehicle modifications. However, 'show-route' should also work if any of the route edges is in view even though the vehicle itself is not on the screen. The "brutal" solution corrently employed is to lock the whole simulation against vehicle modifications while rendering the route. This ensures that the route doesn't change (or the vehicle isn't exiting) during route rendering but comes with a huge cost in gui refresh rate.
threre is a somewhat related problem where the gui may freeze when using traci with show-route in particular when having multiple simulations open.
has been bothering me for a long time. Has to do with locking:
https://github.com/eclipse/sumo/blob/257a45cbb43e58a488906f8e8920d5701a72bbb6/src/gui/GUIViewTraffic.cpp#L385-L392