summaryrefslogtreecommitdiff
path: root/src/window_type.h
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-07-19 21:17:07 +0200
committerPatric Stout <truebrain@openttd.org>2018-07-19 21:17:07 +0200
commit2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad (patch)
tree36da708e128fc68d9ceac32362503df43af2fc22 /src/window_type.h
parenta3d1950b656787b76fbccec1aedd63407c34c2f1 (diff)
downloadopenttd-2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad.tar.xz
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.
Diffstat (limited to 'src/window_type.h')
-rw-r--r--src/window_type.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/window_type.h b/src/window_type.h
index 809e81d48..c90ef51b6 100644
--- a/src/window_type.h
+++ b/src/window_type.h
@@ -681,6 +681,18 @@ enum WindowClass {
*/
WC_SAVE_PRESET,
+ /**
+ * Framerate display; %Window numbers:
+ * - 0 = #FramerateDisplayWidgets
+ */
+ WC_FRAMERATE_DISPLAY,
+
+ /**
+ * Frame time graph; %Window numbers:
+ * - 0 = #FramerateDisplayWidgets
+ */
+ WC_FRAMETIME_GRAPH,
+
WC_INVALID = 0xFFFF, ///< Invalid window.
};