diff options
author | 2014-04-03 03:19:21 +0000 | |
---|---|---|
committer | 2014-04-03 03:19:21 +0000 | |
commit | d812e93dec4bcb81c2b5226b14c54dacf4fb860d (patch) | |
tree | a7758c924c669b794330987f3387d471eadb5ca2 /hgewin/timer.cpp | |
parent | 85923eb8a5d3f070618c3d6f94bea715c11a4227 (diff) | |
download | bullet-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 'hgewin/timer.cpp')
-rwxr-xr-x | hgewin/timer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; +} |