aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu-gles/gpuFps.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/gpu-gles/gpuFps.h')
-rw-r--r--plugins/gpu-gles/gpuFps.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/plugins/gpu-gles/gpuFps.h b/plugins/gpu-gles/gpuFps.h
new file mode 100644
index 0000000..a44a05f
--- /dev/null
+++ b/plugins/gpu-gles/gpuFps.h
@@ -0,0 +1,66 @@
+#ifndef __GPU_FPS__
+#define __GPU_FPS__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/***************************************************************************
+ fps.h - description
+ -------------------
+ begin : Sun Mar 08 2009
+ copyright : (C) 1999-2009 by Pete Bernert
+ web : www.pbernert.com
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. See also the license.txt file for *
+ * additional informations. *
+ * *
+ ***************************************************************************/
+
+//*************************************************************************//
+// History of changes:
+//
+// 2009/03/08 - Pete
+// - generic cleanup for the Peops release
+//
+//*************************************************************************//
+
+
+extern BOOL bIsPerformanceCounter;
+extern float fFrameRateHz;
+extern DWORD dwFrameRateTicks;
+extern float fFrameRate;
+extern int iFrameLimit;
+extern BOOL bUseFrameLimit;
+extern BOOL bUseFrameSkip;
+extern DWORD dwLaceCnt;
+
+extern BOOL bInitCap;
+extern float fps_skip;
+extern float fps_cur;
+
+
+void InitFrameCap(void);
+void SetFrameRateConfig(void);
+void PCFrameCap(void);
+void PCcalcfps(void);
+void FrameSkip(void);
+void CheckFrameRate(void);
+void ReInitFrameCap(void);
+void SetAutoFrameCap(void);
+#ifndef _WINDOWS
+unsigned long timeGetTime();
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+
+#endif