diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-16 21:52:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-16 21:52:01 +0300 |
commit | 5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d (patch) | |
tree | a26f3aec6d651cc028a9ef94c72e9969f53683f9 | |
parent | 2eefd2fe39b31671d1808797fe914ae0ae525524 (diff) | |
download | manaplus-5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d.tar.gz manaplus-5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d.tar.bz2 manaplus-5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d.tar.xz manaplus-5f30b7f0519def9ef1ccb5bdd237f1fc5d47268d.zip |
In tests compare fps * 10.
-rw-r--r-- | src/test/testlauncher.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<int>(static_cast<long>(calls) * 1000 / mtime); + return static_cast<int>(static_cast<long>(calls) * 10000 / mtime); } #endif |