News for hackers. Stuff that matters.
Re:Vector based UI design tool that generates ObjC by eaten_by_a_grue on Thursday March 15, 2012 @09:47AM (#3708388)
Using something like the Apple-provided CGLayer, you can draw the image once, then use it like a bitmap while it is in memory, AND they can keep it cached on the graphics card. These guys could easily produce code that does that.

Reference: https://developer.apple.com/library/mac/#documentation/graph... (it works on iOS too)

Re:Vector based UI design tool that generates ObjC by krevis on Thursday March 15, 2012 @01:26PM (#3709454)
In practice, CGLayer is not some pixie dust that magically makes your drawing fast. It helps only in a specific instance: when you are drawing repeated instances of the same content, into the same context. Otherwise, it ends up being extra complication for no benefit.

(Note that CGLayer is not related to CALayer or CGTransparencyLayer -- they are absolutely separate things. CALayers are incredibly useful in practice; CGLayer was kind of a dead end.)