Improve performance of vehicle route overlay rendering

This commit is contained in:
Jonathan G Rennison
2020-03-05 00:46:37 +00:00
parent a4608f6f72
commit b4a814d371
2 changed files with 59 additions and 38 deletions

View File

@@ -1510,6 +1510,9 @@ void DrawDirtyBlocks()
if (_switch_mode != SM_NONE && !HasModalProgress()) return;
}
extern void ViewportPrepareVehicleRoute();
ViewportPrepareVehicleRoute();
if (_whole_screen_dirty) {
RedrawScreenRect(0, 0, _screen.width, _screen.height);
Window *w;