Re: Drawing performance in CALayer

2011-07-29 Thread Kyle Sluder
On Thu, Jul 28, 2011 at 11:23 PM, Graham Cox wrote: > Am I right in thinking that using calls such as NSRectFill within a CALayer > like this is really making OpenGL calls behind the scenes? If so it's > probably going as fast as it can. On my middling iMac it's acceptably fast, > but laptops s

Drawing performance in CALayer

2011-07-28 Thread Graham Cox
In my iTunes visualizer, I'm using layers to draw many, many small rectangles (to represent segments of a spectrum analyser display). There can be up to 32 bands x 40 segments x 2 channels = 2,560 segments, all redrawn 30 times per second or more. One layer is used for one bar, which is 40 rect