From 5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 16 Jul 2014 21:52:01 +0300 Subject: In tests compare fps * 10. --- src/test/testlauncher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp index c6c9d5128..4e38a7934 100644 --- a/src/test/testlauncher.cpp +++ b/src/test/testlauncher.cpp @@ -184,7 +184,7 @@ int TestLauncher::testFps() file << mTest << std::endl; file << tFps << std::endl; - printf("fps: %d\n", tFps); + printf("fps: %d\n", tFps / 10); sleep(1); return 0; } @@ -216,7 +216,7 @@ int TestLauncher::testFps2() file << mTest << std::endl; file << tFps << std::endl; - printf("fps: %d\n", tFps); + printf("fps: %d\n", tFps / 10); sleep(1); return 0; } @@ -263,7 +263,7 @@ int TestLauncher::testFps3() file << mTest << std::endl; file << tFps << std::endl; - printf("fps: %d\n", tFps); + printf("fps: %d\n", tFps / 10); sleep(1); return 0; } @@ -549,6 +549,6 @@ int TestLauncher::calcFps(const timeval *const start, const timeval *const end, if (mtime == 0) return 100000; - return static_cast(static_cast(calls) * 1000 / mtime); + return static_cast(static_cast(calls) * 10000 / mtime); } #endif -- cgit v1.2.3-70-g09d2