summaryrefslogtreecommitdiffstats
path: root/src/core/Profile.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-14 09:31:00 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-14 09:31:37 +0200
commit7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806 (patch)
tree5a2728e938adede0bd8ce1b28e79cc97376dba2d /src/core/Profile.h
parentSome cleanup (diff)
downloadre3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.gz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.bz2
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.lz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.xz
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.tar.zst
re3-7f8a4b4867cff2a2aaf32eddaca65ba9f4e92806.zip
Diffstat (limited to 'src/core/Profile.h')
-rw-r--r--src/core/Profile.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/Profile.h b/src/core/Profile.h
new file mode 100644
index 00000000..d2e8054b
--- /dev/null
+++ b/src/core/Profile.h
@@ -0,0 +1,28 @@
+#pragma once
+
+enum eProfile
+{
+ PROFILE_FRAME_RATE,
+ PROFILE_PHYSICS,
+ PROFILE_COLLISION,
+ PROFILE_PED_AI,
+ PROFILE_PROCESSING_TIME,
+ PROFILE_RENDERING_TIME,
+ PROFILE_TOTAL,
+ NUM_PROFILES,
+};
+
+class CProfile
+{
+ static float ms_afStartTime[NUM_PROFILES];
+ static float ms_afCumulativeTime[NUM_PROFILES];
+ static float ms_afEndTime[NUM_PROFILES];
+ static float ms_afMaxEndTime[NUM_PROFILES];
+ static float ms_afMaxCumulativeTime[NUM_PROFILES];
+ static char *ms_pProfileString[NUM_PROFILES];
+ static RwRGBA ms_aBarColours[NUM_PROFILES];
+public:
+ static void Initialise();
+ static void SuspendProfile(eProfile profile);
+ static void ShowResults();
+}; \ No newline at end of file