summaryrefslogtreecommitdiff
path: root/hge/timer.cpp
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-03 03:19:21 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-03 03:19:21 +0000
commitd812e93dec4bcb81c2b5226b14c54dacf4fb860d (patch)
treea7758c924c669b794330987f3387d471eadb5ca2 /hge/timer.cpp
parent85923eb8a5d3f070618c3d6f94bea715c11a4227 (diff)
downloadbullet-lab-remix-d812e93dec4bcb81c2b5226b14c54dacf4fb860d.tar.xz
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.
Diffstat (limited to 'hge/timer.cpp')
-rw-r--r--hge/timer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/hge/timer.cpp b/hge/timer.cpp
index af75315..13711c7 100644
--- a/hge/timer.cpp
+++ b/hge/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;
+}