Fix performance regression rendering vehicle route overlays.
Performance issue was triggered when orders were modified whilst the route was displayed and the game was in multiplayer mode.
This commit is contained in:
@@ -1751,6 +1751,7 @@ static void ViewportMapDrawVehicleRoute(const ViewPort *vp)
|
||||
if (_vp_route_paths_last_mark_dirty != drawn_paths) {
|
||||
// make sure we're not drawing a partial path
|
||||
MarkRoutePathsDirty(drawn_paths);
|
||||
_vp_route_paths_last_mark_dirty = drawn_paths;
|
||||
DEBUG(misc, 1, "ViewportMapDrawVehicleRoute: redrawing dirty paths 3");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user