Commit 095fd36
committed
perf(render): viewport culling, live POIs, external TraCI attach
Rendering
- Spatially index lanes; cull lane/vehicle/POI buffers to visible world
bounds with pan headroom. Rebuild only when scale crosses a 3% LOD
step or the viewport leaves the cached region.
- Coalesce pan deltas onto a 60 Hz timer so trackpad/scroll events
don't thrash GPU buffers.
- Cap zoom at a per-network maximum derived from lane widths so small
networks can't blow past the lane-width cap.
- Skip vehicle interpolation (and drop to 30 Hz) for dense fleets where
animation isn't visible anyway.
Selection & contrast
- Draw selected lanes/junctions as alpha overlays on top of the base
color instead of replacing it, so selection no longer masks state.
- Add WCAG-aware stroke/detail colors for vehicle icons.
Live POIs
- Poll "slot_*" POIs each tick via new poiPosition/poiColor TraCI calls
and surface them through SimulationState.pois alongside static POIs.
External TraCI attach
- Add --traci-port / --traci-order launch flags and a 60×500ms connect
retry budget so an external runner can spawn SUMO and have
SumoMacGUI attach.
SumoLauncher
- Extract SumoLauncher.arguments and switch to bare --no-step-log /
--no-warnings; update CHECKLIST note.
Tests
- NetworkRenderLODTests, ViewportStateTests, new SumoLauncherTests
cover the helpers above.1 parent ed63cf1 commit 095fd36
13 files changed
Lines changed: 1057 additions & 200 deletions
File tree
- Sources
- SumoGUIMac
- App
- Render
- ViewModels
- SumoKit
- Backend
- Model
- Tests
- SumoGUIMacTests
- SumoKitTests
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
17 | 29 | | |
18 | 30 | | |
19 | 31 | | |
| |||
22 | 34 | | |
23 | 35 | | |
24 | 36 | | |
25 | | - | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | | - | |
| 41 | + | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
0 commit comments