summaryrefslogtreecommitdiff
path: root/src/utils/perfomance.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-25 15:15:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-25 15:15:54 +0300
commit2198ecc98ecc5e94f2856795065d198557387ade (patch)
tree873858ffceb4b6e62f441597860224b9fa3a6207 /src/utils/perfomance.cpp
parent75c5b3d32afdb34b824daafaa6d4300b9a8ec06b (diff)
downloadmanaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.gz
manaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.bz2
manaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.xz
manaplus-2198ecc98ecc5e94f2856795065d198557387ade.zip
Add more profiler labels.
Diffstat (limited to 'src/utils/perfomance.cpp')
-rw-r--r--src/utils/perfomance.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/perfomance.cpp b/src/utils/perfomance.cpp
index d7ed52d4b..5858d43e6 100644
--- a/src/utils/perfomance.cpp
+++ b/src/utils/perfomance.cpp
@@ -25,6 +25,9 @@
#include "utils/perfomance.h"
#include "configuration.h"
+#include "game.h"
+
+#include "utils/timer.h"
#include <algorithm>
#include <cstdarg>
@@ -87,7 +90,8 @@ namespace Perfomance
void flush()
{
- file << temp;
+ if (fps < 40)
+ file << temp;
temp.clear();
// file.flush();
}