summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index b4c790722..ae826a50c 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -52,6 +52,7 @@
#include "gamelog.h"
#include "linkgraph/linkgraph.h"
#include "linkgraph/refresh.h"
+#include "framerate_type.h"
#include "table/strings.h"
@@ -945,8 +946,15 @@ void CallVehicleTicks()
RunVehicleDayProc();
- Station *st;
- FOR_ALL_STATIONS(st) LoadUnloadStation(st);
+ {
+ PerformanceMeasurer framerate(PFE_GL_ECONOMY);
+ Station *st;
+ FOR_ALL_STATIONS(st) LoadUnloadStation(st);
+ }
+ PerformanceAccumulator::Reset(PFE_GL_TRAINS);
+ PerformanceAccumulator::Reset(PFE_GL_ROADVEHS);
+ PerformanceAccumulator::Reset(PFE_GL_SHIPS);
+ PerformanceAccumulator::Reset(PFE_GL_AIRCRAFT);
Vehicle *v;
FOR_ALL_VEHICLES(v) {