diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-02-04 01:26:55 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-02-23 14:29:07 +0100 |
commit | 7e1e2756d4fdbd9c2fb3508b4213de8dc855f21c (patch) | |
tree | 15e4f7b212bafdd3e83653aca1a465a5f6f4461b /src/framerate_type.h | |
parent | 4adb91202d7c0118b52daeab2c4e6b040b30e4a9 (diff) | |
download | openttd-7e1e2756d4fdbd9c2fb3508b4213de8dc855f21c.tar.xz |
Add: Show performance of AI and GS in framerate window
Diffstat (limited to 'src/framerate_type.h')
-rw-r--r-- | src/framerate_type.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/framerate_type.h b/src/framerate_type.h index 8df9a279a..3c54e0307 100644 --- a/src/framerate_type.h +++ b/src/framerate_type.h @@ -60,6 +60,23 @@ enum PerformanceElement { PFE_DRAWWORLD, ///< Time spent drawing world viewports in GUI PFE_VIDEO, ///< Speed of painting drawn video buffer. PFE_SOUND, ///< Speed of mixing audio samples + PFE_ALLSCRIPTS, ///< Sum of all GS/AI scripts + PFE_GAMESCRIPT, ///< Game script execution + PFE_AI0, ///< AI execution for player slot 1 + PFE_AI1, ///< AI execution for player slot 2 + PFE_AI2, ///< AI execution for player slot 3 + PFE_AI3, ///< AI execution for player slot 4 + PFE_AI4, ///< AI execution for player slot 5 + PFE_AI5, ///< AI execution for player slot 6 + PFE_AI6, ///< AI execution for player slot 7 + PFE_AI7, ///< AI execution for player slot 8 + PFE_AI8, ///< AI execution for player slot 9 + PFE_AI9, ///< AI execution for player slot 10 + PFE_AI10, ///< AI execution for player slot 11 + PFE_AI11, ///< AI execution for player slot 12 + PFE_AI12, ///< AI execution for player slot 13 + PFE_AI13, ///< AI execution for player slot 14 + PFE_AI14, ///< AI execution for player slot 15 PFE_MAX, ///< End of enum, must be last. }; DECLARE_POSTFIX_INCREMENT(PerformanceElement) @@ -81,6 +98,7 @@ public: PerformanceMeasurer(PerformanceElement elem); ~PerformanceMeasurer(); void SetExpectedRate(double rate); + static void SetInactive(PerformanceElement elem); static void Paused(PerformanceElement elem); }; |