Problem
Driver and employee positions were updated continuously.
As location updates became more frequent, updating the map directly for every change made the frontend increasingly expensive to render.
- 01 Location update
- 02 State update
- 03 Map update
- 04 Render
- 05 Next update
Too many updates → too much rendering → map lag
Investigated
The problem wasn’t the map itself. The problem was the amount of work happening between incoming location changes and what the user actually needed to see.
Changed
- Reduced unnecessary intermediate updates
- Optimized how location changes reach rendering
- Preserved precise position changes
- Smoothed the visual transition where appropriate
Result
The map could continue receiving changing location data without making the interface feel overloaded or noticeably laggy.