简体   繁体   中英

CaLayer performance with animating pie chart

I've developed a Pie Chart with animating pie segments. Each segment sa sublayer with custom drawing. The start and end angles are dynamic properties. The parts and their labels are drawn with core gaphics.

However, i notice bad performance with lots of red layers in the simulator. I cannot you opaque layers with pie parts obviously. i've set the ShouldRasterize to yes, that helped a bit. I also tried using instruments to spot the problem to no avail.

Core Plot

This open-source project may bring some thoughts about perfomance. I've used this with animations in production and have great results

我无法解决问题,因此我通过使用较小的层采取了完全不同的方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM