For CALayer.shadowPath “Specifying the path explicitly using this property will usually improve rendering performance”. When does it not?
Conversation
Replying to
If the path is extremely complicated, it'd take more time to rasterize than the offscreen drawing pass.
Replying to
thanks and a related follow up, is there any benefit if the view is a simple opaque square?
2
1
Oh, wait, I totally lied. Square-with-corner-radius is not on a special fast path for shadows; just for masking. Sorry!
1
3
Show replies

