diff options
author | Sérgio Martins <sergio.martins.qnx@kdab.com> | 2012-09-07 12:00:30 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-11 16:07:33 +0200 |
commit | 2c9886dfb9d448b08794d88ea112076c2744f194 (patch) | |
tree | b569067de827a34cc24c37014d77bf4de30afea7 /tests/benchmarks/qml/qquickwindow/qquickwindow.pro | |
parent | cad818ae17c5537a2bbf733806719eafa8227032 (diff) |
Fix performance bottleneck in QQuickWindow::mouseMoveEvent().
When a mouse move event is received, a lot of time is spent looking
for items with cursors, recursively.
With this patch, it will only recur into item hierarchies that
contain cursors.
Not having cursors is much more common than having them.
Benchmark included:
Before: 15 msecs per iteration (total: 62, iterations: 4)
After: 0.000064 msecs per iteration (total: 68, iterations: 1048576)
Task-number: QTBUG-27054
Change-Id: I3a5441652ca1c0b8d2cbc5683013562174f5af4a
Reviewed-by: Alan Alpert <416365416c@gmail.com>
Diffstat (limited to 'tests/benchmarks/qml/qquickwindow/qquickwindow.pro')
-rw-r--r-- | tests/benchmarks/qml/qquickwindow/qquickwindow.pro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/benchmarks/qml/qquickwindow/qquickwindow.pro b/tests/benchmarks/qml/qquickwindow/qquickwindow.pro new file mode 100644 index 0000000000..76aecf9d13 --- /dev/null +++ b/tests/benchmarks/qml/qquickwindow/qquickwindow.pro @@ -0,0 +1,11 @@ +CONFIG += testcase +TARGET = tst_qquickwindow +SOURCES += tst_qquickwindow.cpp +macx:CONFIG -= app_bundle + +testDataFiles.files = data +testDataFiles.path = . +DEPLOYMENT += testDataFiles + +QT += core-private gui-private v8-private qml-private quick-private opengl-private testlib +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
\ No newline at end of file |