[UbuntuShape] repeated setting/unsetting the image badly impacts rendering performance

Bug #1180794 reported by Michael Zanetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Loïc Molinari
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Frequent setting/unsetting of the image in an ubuntu shape badly impacts the rendering performance. This can be seen in this branch (https://code.launchpad.net/~mzanetti/unity/phablet-unload-far-away-images/+merge/160083) where we try to unload invisible images in order to save some memory.

Attached you can find a simple qml file that lets you reproduce the issue. It contains a Flickable and a UbuntuShape in it. First, try flicking it up and down. It'll be smooth. Then, click on the image. This removes and sets the image 100 times. Try the flicking again and you will notice a drop in performance. Repeat for a couple of times and the problem will get worse and worse.

Tags: shape

Related branches

Revision history for this message
Michael Zanetti (mzanetti) wrote :
Revision history for this message
Michael Zanetti (mzanetti) wrote :
Changed in ubuntu-ui-toolkit:
assignee: nobody → Loïc Molinari (loic.molinari)
importance: High → Critical
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
tags: added: shape
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision 617, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+13.10.20130712-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130712-0ubuntu1) saucy; urgency=low

  [ Kaleo ]
  * Removed unused artwork.
  * Added experimental dark & gradient themes.
  * Reverted standard easings to Quad because it seems
    QEasingCurve::BezierSpline does not ensure the target value is
    always reached. (LP: #1199662)

  [ Loïc Molinari ]
  * [UbuntuShape] Prevented dangling nodes in the scene graph. (LP:
    #1180794)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 618
 -- Ubuntu daily release <email address hidden> Fri, 12 Jul 2013 04:02:24 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.