Is Core Animation color blended layers useful or say is it necessary?
Asked Answered
B

3

11

Color Blended Layers Open Instruments and choose the Core Animation template located under iOS / Graphics. First, click in the Core Animation instrument's timeline to reveal the bottom pane and find the section labeled "Debug Options". Check the "Color Blended Layers" box, which will show a red overlay over layers that were blended and a green overlay over layers drawn without blending.

Is Core Animation color blended layers useful or say is it necessary? I found that the system UI is red blended yet. And my app is also red blended in some areas.

what should I do?

Thanks in advance.

Binnings answered 2/8, 2013 at 3:7 Comment(0)
P
20

Yeah, It's necessary to fix the blended layers, For example: you background have a white color and you add a label in the view .and set background color clear color. This will make your layer blended. But this is unnecessary to calculate . If you set your label color same as your view. scrolling performance will improve a lot. You can feel it.

Plotkin answered 2/8, 2013 at 3:17 Comment(4)
If your view is not to scroll, you have blended layer,maybe it's OK.Plotkin
I know this ,If my view don't need scroll . And if it has blended layer, is it necessary to fix?Binnings
It's no necessary, since it just run once, the performance is not improved obviously.Ulises
The Label has an extra sublayer when it's displaying Chinese. We have to use clipsToBounds = true to fix the color blend layers. But the clipsToBounds is another effort to the system. Is it still worth to fix it?Lint
A
6

Via apple developer:

Color Blended Layers. Shows blended view layers. Multiple view layers that are drawn on top of each other with blending enabled are highlighted in red. Reducing the amount of red in your app when this option is selected can dramatically improve your apps performance. Blended view layers are often the cause for slow table scrolling.

It's all about the performance of your UI rendering, if you will work with opaque option (or property) and all your layers will be green, your rendering will be super fast.

Good luck.

Annul answered 10/8, 2015 at 13:37 Comment(0)
G
0

Red color in Color Blended Layers says that you should take additional look at this view and if possible optimise a layer to minimize effort to calculate result view

[iOS debug rendering]

Germanous answered 11/9, 2022 at 17:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.