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/timer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hgewin/timer.cpp') diff --git a/hgewin/timer.cpp b/hgewin/timer.cpp index af75315..13711c7 100755 --- a/hgewin/timer.cpp +++ b/hgewin/timer.cpp @@ -20,9 +20,12 @@ float CALL HGE_Impl::Timer_GetDelta() return fDeltaTime; } - int CALL HGE_Impl::Timer_GetFPS() { return nFPS; } +float CALL HGE_Impl::Timer_GetFPSf() +{ + return nFPSf; +} -- cgit v1.2.3