diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-08 08:21:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-08 08:21:38 +0300 |
commit | 8809fd2f14e8134e43c1f4249086d6f7a670a669 (patch) | |
tree | 97b9a932584e407661afa3d86135c5e459369eec /src/utils | |
parent | 5d83c6b9c4fca96b6b0de312080346837b385f5f (diff) | |
download | plus-8809fd2f14e8134e43c1f4249086d6f7a670a669.tar.gz plus-8809fd2f14e8134e43c1f4249086d6f7a670a669.tar.bz2 plus-8809fd2f14e8134e43c1f4249086d6f7a670a669.tar.xz plus-8809fd2f14e8134e43c1f4249086d6f7a670a669.zip |
Apply fps limiter after state logic.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/perfstat.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/utils/perfstat.cpp b/src/utils/perfstat.cpp index 839fc7291..479e97033 100644 --- a/src/utils/perfstat.cpp +++ b/src/utils/perfstat.cpp @@ -88,7 +88,7 @@ namespace Perf { if (f == perfFrameId) continue; - const int time1 = Perf::getTime(f, PERFSTAT_LAST_STAT - 1); + const int time1 = Perf::getTime(f, PERFSTAT_FPS_STAT - 1); if (time1 > time) { time = time1; @@ -99,8 +99,10 @@ namespace Perf { worstFrameStats = perfStats[index]; logger->log("worst frame: %d, %d", - perfStats[index].ticks[PERFSTAT_LAST_STAT - 1], - worstFrameStats.ticks[PERFSTAT_LAST_STAT - 1]); + perfStats[index].ticks[PERFSTAT_FPS_STAT - 1] - + perfStats[index].ticks[0], + worstFrameStats.ticks[PERFSTAT_FPS_STAT - 1] - + worstFrameStats.ticks[0]); worstTime = time; } } |