aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-06-28 13:24:29 +0200
committerRobin Burchell <robin.burchell@crimson.no>2017-06-28 12:58:27 +0000
commit8606a511b44d66882ca950e1161c8f668f9a283a (patch)
tree6c8399a3b164968585b317329724be9aac5ad17c
parenta54f075dbbdf13d2a660c120865d47092303c51f (diff)
qmlbench: Fix incorrect counting in frame-count shell
We should not count the warmup iterations in the overall number of produced items. This seems wrong, and causes some confusion when troubleshooting a broken test. Note that a side effect of this change is that *all* results will now drop by a value of 5 after this change is introduced. Change-Id: Ib5e8a55411b663180f9d1a1a2a1df651bf0e4dc5 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/Shell_TotalFramesWithStaticCount.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Shell_TotalFramesWithStaticCount.qml b/src/Shell_TotalFramesWithStaticCount.qml
index 579bd24..739149b 100644
--- a/src/Shell_TotalFramesWithStaticCount.qml
+++ b/src/Shell_TotalFramesWithStaticCount.qml
@@ -93,6 +93,7 @@ Item {
// chance to stabilize before we start measuring
if (countDown > 0) {
--countDown;
+ return;
} else if (countDown == 0) {
--countDown;
startedCounting = Date.now();