ce879073 |
1 | #ifndef __GPU_FPS__\r |
2 | #define __GPU_FPS__\r |
3 | \r |
4 | #ifdef __cplusplus\r |
5 | extern "C" {\r |
6 | #endif\r |
7 | \r |
8 | /***************************************************************************\r |
9 | fps.h - description\r |
10 | -------------------\r |
11 | begin : Sun Mar 08 2009\r |
12 | copyright : (C) 1999-2009 by Pete Bernert\r |
13 | web : www.pbernert.com \r |
14 | ***************************************************************************/\r |
15 | \r |
16 | /***************************************************************************\r |
17 | * *\r |
18 | * This program is free software; you can redistribute it and/or modify *\r |
19 | * it under the terms of the GNU General Public License as published by *\r |
20 | * the Free Software Foundation; either version 2 of the License, or *\r |
21 | * (at your option) any later version. See also the license.txt file for *\r |
22 | * additional informations. *\r |
23 | * *\r |
24 | ***************************************************************************/\r |
25 | \r |
26 | //*************************************************************************// \r |
27 | // History of changes:\r |
28 | //\r |
29 | // 2009/03/08 - Pete \r |
30 | // - generic cleanup for the Peops release\r |
31 | //\r |
32 | //*************************************************************************// \r |
33 | \r |
34 | \r |
35 | extern BOOL bIsPerformanceCounter;\r |
36 | extern float fFrameRateHz;\r |
37 | extern DWORD dwFrameRateTicks;\r |
38 | extern float fFrameRate;\r |
39 | extern int iFrameLimit;\r |
40 | extern BOOL bUseFrameLimit;\r |
41 | extern BOOL bUseFrameSkip;\r |
42 | extern DWORD dwLaceCnt;\r |
43 | \r |
44 | extern BOOL bInitCap; \r |
45 | extern float fps_skip;\r |
46 | extern float fps_cur;\r |
47 | \r |
48 | \r |
49 | void InitFrameCap(void);\r |
50 | void SetFrameRateConfig(void);\r |
51 | void PCFrameCap(void);\r |
52 | void PCcalcfps(void);\r |
53 | void FrameSkip(void);\r |
54 | void CheckFrameRate(void);\r |
55 | void ReInitFrameCap(void);\r |
56 | void SetAutoFrameCap(void);\r |
57 | #ifndef _WINDOWS\r |
58 | unsigned long timeGetTime();\r |
59 | #endif\r |
60 | \r |
61 | #ifdef __cplusplus\r |
62 | }\r |
63 | #endif\r |
64 | \r |
65 | \r |
66 | #endif\r |