From d0eff986be39ba24cf83caf6e96de99416cb02a2 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 6 Jul 2013 19:00:33 +0000 Subject: (svn r25570) -Add: cache for ParagraphLayouts. --- src/openttd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/openttd.cpp') diff --git a/src/openttd.cpp b/src/openttd.cpp index 07124b84f..90c5d56db 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -61,6 +61,7 @@ #include "game/game_config.hpp" #include "town.h" #include "subsidy_func.h" +#include "gfx_layout.h" #include "linkgraph/linkgraphschedule.h" @@ -1318,6 +1319,8 @@ void StateGameLoop() ClearStorageChanges(false); + Layouter::ReduceLineCache(); + if (_game_mode == GM_EDITOR) { RunTileLoop(); CallVehicleTicks(); -- cgit v1.2.3-54-g00ecf