ActivityIndicator much more CPU intensive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
High
|
Loïc Molinari |
Bug Description
Given:
import QtQuick 2.3
import Ubuntu.Components 1.2
Item {
width: childrenRect.width
height: childrenRect.height
Grid {
columns: 20
Repeater {
model: 400
id: indicator
}
}
}
Timer {
interval: 10000
running: true
}
}
Running it under xvfb with current UITK:
$ time xvfb-run -s "-screen 0 1024x1024x24" qmlscene testactivity.qml
> 20,60s user 0,44s system 205% cpu 10,225 total
When with the release before (1.1.1403+
> 8,42s user 0,10s system 83% cpu 10,226 total
As you can see the difference is more than double. The offending revision is 1222.1.16² that changes the ActivityIndicat
The difference in runs outside of xvfb are minimal, in favour of the new version:
$ time qmlscene testactivity.qml
> 1,13s user 0,18s system 12% cpu 10,412 total
vs.
> 1,13s user 0,13s system 12% cpu 10,415 total
There is unfortunately some side-effect of this, the unity8 QML test suite went from taking under an hour to over two hours during our CI runs - see the attached trend chart. You can clearly see the spike at around job #563. Part of the increase is the fact that we were using the ActivityIndicator to force a render pass and cause waitForRendering() calls to return early, but the difference caused by that is about 10 minutes³, not an hour.
¹ https:/
² http://
³ https:/
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: qtdeclarative5-
ProcVersionSign
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.16.2-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Mar 13 17:11:18 2015
SourcePackage: ubuntu-ui-toolkit
SystemImageInfo:
current build number: 0
device name:
channel: daily
last update: Unknown
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Loïc Molinari (loic.molinari) |
status: | New → Confirmed |
importance: | Undecided → High |
summary: |
- ActivityIndicator much more CPU intensive under xvfb + ActivityIndicator much more CPU intensive |
tags: | added: performance |