From 10c4676322b3a4a0a326a4916e74cac0678de6dd Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 2 Nov 2017 12:54:30 +0100 Subject: 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 --- src/qmlbench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3