Performance of CAShapeLayer?
From apple's doc and session,I think CAShapeLayer should render in render server when composited.And if shouldRasterize is disabled, the path should render every frame.
But when I profile a layer with a very complex path, seems not true. I can see the render is not happen on app side, but it is not happen every frame when I disabled rasterize, it only happen when I change the path.
Apple now cache the rendered bitmap all the time, this may consume some memory?
If apple cache the bitmap, I think it's conflict with the session above.
CAShapeLayer
的路径栅格化过程发生在渲染服务器端,而不是客户端(应用程序)端。
上一篇: 如何在iOS 6中计算给定宽度的NSAttributedString的高度
下一篇: CAShapeLayer的性能?