aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2017-11-02 12:54:30 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2017-11-15 09:38:32 +0000
commit10c4676322b3a4a0a326a4916e74cac0678de6dd (patch)
tree8f8a91046fc4e7e0b4fc38abb525b90ed2c04359
parentab770345f2882782e412a0e8244b27887e1b4f22 (diff)
Try to get a better random spread for tests with static count 20k
Some tests, where the static count was set to 20000 would collect all items along a diagonal line. It seems as if the reason for this was that QML would evaluate all Xs first and then all Ys, and since the static count was an exact multiple of the size of the pregenerated array, the multiplier for X and Y would be the same, so they would gather along the diagonal. By setting the size of the array we make this unlikely (tests with static count 20002 will still encounter the issue, but we have none of those.) Change-Id: I2d1df3c17f270a185e73e53d4ec9e2b56ddc799d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/qmlbench.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlbench.cpp b/src/qmlbench.cpp
index 3d51cc5..e25b22c 100644
--- a/src/qmlbench.cpp
+++ b/src/qmlbench.cpp
@@ -28,7 +28,7 @@
#include "qmlbench.h"
-#define PREGENERATED_COUNT 10000
+#define PREGENERATED_COUNT 10001
QmlBench::QmlBench(QObject *parent)
: QObject(parent)