[MainView] Background color and image rendering is too slow
Bug #1439133 reported by
Loïc Molinari
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Loïc Molinari | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The MainView renders at the bottom-most layer a background composed of a colored rectangle and an image. The way it is currently implemented implies two fullscreen passes with alpha blending on. This is very slow. A solution would be to use just one pass using a ShaderEffect or a dedicated C++ component. Disabling alpha blending (possible since it's the bottom-most layer) would also provide a good performance boost. Another idea, if no image needs to be rendered, would be to simply set the GPU clear color to the background color, to render it for free.
Related branches
lp:~fboucault/ubuntu-ui-toolkit/mainview_no_background_overdraw
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 35 lines (+14/-0)2 files modifiedsrc/Ubuntu/Components/Themes/Ambiance/1.2/MainViewStyle.qml (+7/-0)
src/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml (+7/-0)
lp:~tpeeters/ubuntu-ui-toolkit/fasterWindowColor
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 143 lines (+35/-25)4 files modifiedsrc/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml (+9/-23)
src/Ubuntu/Components/plugin/ucmainviewbase.cpp (+23/-1)
src/Ubuntu/Components/plugin/ucmainviewbase.h (+1/-0)
src/Ubuntu/Components/plugin/ucmainviewbase_p.h (+2/-1)
lp:~tpeeters/ubuntu-ui-toolkit/fasterWindowColorTrunk
- Ubuntu SDK team: Pending requested
-
Diff: 163 lines (+42/-27)5 files modifiedsrc/Ubuntu/Components/Themes/Ambiance/1.3/MainViewStyle.qml (+9/-23)
src/Ubuntu/Components/plugin/ucmainviewbase.cpp (+23/-1)
src/Ubuntu/Components/plugin/ucmainviewbase.h (+1/-0)
src/Ubuntu/Components/plugin/ucmainviewbase_p.h (+2/-1)
tests/unit/runtest.sh (+7/-2)
description: | updated |
summary: |
- [MainView] Background color and image rendering is slow + [MainView] Background color and image rendering is too slow |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | New → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | Fix Committed → Fix Released |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
milestone: | none → ww08-2016 |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Yes, we can set the GPU clear color and remove the Rectangle for the background color. Currently we will still have to render the semi-transparent paper texture on top of that.