Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 711
HamasN Avatar asked Aug 02 '13 03:08

HamasN


2 Answers

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.

like image 145
How Newbility Avatar answered Nov 15 '22 20:11

How Newbility


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.

like image 32
OhadM Avatar answered Nov 15 '22 20:11

OhadM