From 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Thu, 19 Jul 2018 21:17:07 +0200 Subject: Feature: Framerate display window (#6822) Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command. --- src/roadveh_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/roadveh_cmd.cpp') diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index 7d0007fd2..ed67a5221 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -35,6 +35,7 @@ #include "core/backup_type.hpp" #include "newgrf.h" #include "zoom_func.h" +#include "framerate_type.h" #include "table/strings.h" @@ -1587,6 +1588,8 @@ Money RoadVehicle::GetRunningCost() const bool RoadVehicle::Tick() { + PerformanceAccumulator framerate(PFE_GL_ROADVEHS); + this->tick_counter++; if (this->IsFrontEngine()) { -- cgit v1.2.3-54-g00ecf