From d812e93dec4bcb81c2b5226b14c54dacf4fb860d Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Thu, 3 Apr 2014 03:19:21 +0000 Subject: Remove "high FPS mode", it won't reach 500 FPS on my computer any more. Replace it with Vsync mode. Add float HGE::Timer_GetFPSf(). The return value will be updated every 1000ms. --- hgewin/hge_impl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hgewin/hge_impl.h') diff --git a/hgewin/hge_impl.h b/hgewin/hge_impl.h index e438b00..b3f0fe5 100755 --- a/hgewin/hge_impl.h +++ b/hgewin/hge_impl.h @@ -117,6 +117,7 @@ public: virtual float CALL Timer_GetTime(); virtual float CALL Timer_GetDelta(); virtual int CALL Timer_GetFPS(); + virtual float CALL Timer_GetFPSf(); virtual HEFFECT CALL Effect_Load(const char *filename, DWORD size=0); virtual void CALL Effect_Free(HEFFECT eff); @@ -335,8 +336,11 @@ public: // Timer float fTime; float fDeltaTime; + float fUpdateFPSDelay; + float nFPSf; DWORD nFixedDelta; int nFPS; + int Fcnt; DWORD t0, t0fps, dt; int cfps; -- cgit v1.2.3