on xenial help sign in
Workaround QTBUG-53460

Make the invisible dummy highlight animate fast as to not cause extra rendering The preview change is easy to reproduce, the gallery one is a bit harder but is based on the same principle. For the preview one, open the Telegram app on the store and scroll down quite a bit and leave it there. Observe how both unity8-dash and unity8 use around 20% CPU (on the phone) for a LONG time Now do the same with this patch and see the CPU usage drops to 0 quickly. The same workaround could apply to other ListViews but i can not reproduce the behaviour in the rest so i was cautious

commit855d5483c266e6fd8a664e04cb34135b34400ba3 authorAlbert Astals Cid <albert.astals@canonical.com> dateFri 17 Jun 2016, 01:13 (10 years ago) parentbfaa2aa542c426
2 files changed+2
qml/Dash/Previews/Preview.qml+1 qml/Dash/Previews/PreviewImageGallery.qml+1
qml/Dash/Previews/Preview.qml+1
@@ -78,6 +78,7 @@ Item {
7878
7979 model: columnModel
8080 cacheBuffer: height
81+ highlightMoveDuration: 0 // QTBUG-53460
8182
8283 Behavior on contentY { UbuntuNumberAnimation { } }
8384
qml/Dash/Previews/PreviewImageGallery.qml+1
@@ -38,6 +38,7 @@ PreviewWidget {
3838 cacheBuffer: width * 3
3939 model: root.widgetData["sources"]
4040 clip: true
41+ highlightMoveDuration: 0 // QTBUG-53460
4142
4243 onCurrentIndexChanged: overlay.updateInitialItem()
4344