diff -Naur Irrlicht.old/CFPSCounter.cpp Irrlicht/CFPSCounter.cpp --- Irrlicht.old/CFPSCounter.cpp 2005-03-01 14:43:44.753610691 +0100 +++ Irrlicht/CFPSCounter.cpp 2005-03-10 01:37:36.000000000 +0100 @@ -11,7 +11,7 @@ CFPSCounter::CFPSCounter() -: fps(0), startTime(0), framesCounted(100) +: fps(0.0f), startTime(0), framesCounted(100) { } @@ -19,7 +19,7 @@ //! returns current fps -s32 CFPSCounter::getFPS() +f32 CFPSCounter::getFPS() { return fps; } @@ -33,9 +33,9 @@ u32 milliseconds = now - startTime; - if (milliseconds > 2000) + if (milliseconds > 1000) { - fps = (s32)((f32)framesCounted / ((f32)milliseconds / 1000.0f)); + fps = framesCounted / (milliseconds / 1000.0f); startTime = now; framesCounted = 0; diff -Naur Irrlicht.old/CFPSCounter.h Irrlicht/CFPSCounter.h --- Irrlicht.old/CFPSCounter.h 2005-03-01 14:43:44.758609983 +0100 +++ Irrlicht/CFPSCounter.h 2005-03-08 10:31:50.000000000 +0100 @@ -19,14 +19,14 @@ CFPSCounter(); //! returns current fps - s32 getFPS(); + f32 getFPS(); //! to be called every frame void registerFrame(u32 now); private: - s32 fps; + f32 fps; u32 startTime; u32 framesCounted; }; --- Irrlicht.old/CNullDriver.cpp 2005-04-04 11:01:38.859454343 +0200 +++ Irrlicht/CNullDriver.cpp 2005-03-08 18:05:42.000000000 +0100 @@ -624,7 +624,7 @@ // returns current frames per second value -s32 CNullDriver::getFPS() +f32 CNullDriver::getFPS() { return FPSCounter.getFPS(); } --- Irrlicht.old/CNullDriver.h 2005-03-01 14:43:45.858454252 +0100 +++ Irrlicht/CNullDriver.h 2005-03-08 10:32:19.000000000 +0100 @@ -177,7 +177,7 @@ virtual core::dimension2d getScreenSize(); // returns current frames per second value - virtual s32 getFPS(); + virtual f32 getFPS(); //! returns amount of primitives (mostly triangles) were drawn in the last frame. //! very useful method for statistics. diff -Naur Irrlicht.old/include/IVideoDriver.h Irrlicht/include/IVideoDriver.h --- Irrlicht.old/include/IVideoDriver.h 2005-04-04 11:01:39.051427158 +0200 +++ Irrlicht/include/IVideoDriver.h 2005-03-09 16:52:46.000000000 +0100 @@ -622,7 +622,7 @@ //! Returns current frames per second value. /** \return Returns amount of frames per second drawn. **/ - virtual s32 getFPS() = 0; + virtual f32 getFPS() = 0; //! Returns amount of primitives (mostly triangles) which were drawn in the last frame. /** Together with getFPS() very useful method for statistics.