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

元气小坏坏 提交于 2019-12-10 13:03:32

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/18008109/is-core-animation-color-blended-layers-useful-or-say-is-it-necessary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!