From 2198ecc98ecc5e94f2856795065d198557387ade Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Nov 2014 15:15:54 +0300 Subject: Add more profiler labels. --- src/utils/perfomance.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/utils/perfomance.cpp') 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 #include @@ -87,7 +90,8 @@ namespace Perfomance void flush() { - file << temp; + if (fps < 40) + file << temp; temp.clear(); // file.flush(); } -- cgit v1.2.3-70-g09d2