Only update vehicle image when in the vicinity of a viewport
This reduces the performance impact of expensive NewGRF graphics chains.
This commit is contained in:
@@ -127,7 +127,7 @@ void ResetVehicleColourMap();
|
||||
|
||||
byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for, CargoID dest_cargo_type);
|
||||
|
||||
void ViewportAddVehicles(DrawPixelInfo *dpi);
|
||||
void ViewportAddVehicles(DrawPixelInfo *dpi, bool update_vehicles);
|
||||
void ViewportMapDrawVehicles(DrawPixelInfo *dpi, Viewport *vp);
|
||||
|
||||
void ShowNewGrfVehicleError(EngineID engine, StringID part1, StringID part2, GRFBugs bug_type, bool critical);
|
||||
|
||||
Reference in New Issue
Block a user