Re: subLayers - GPU - optimizing

2009-03-09 Thread rajesh
Thanks Matt , I overlooked it completely . simply changing [CALayer layer]; to [[CALayer alloc] init]; solved the problem after successfully making the changes I still see the problem exists. CALayers are removed if they are no longer needed , but after adding around 120 layers (I could see jus

Re: subLayers - GPU - optimizing

2009-03-09 Thread Matt Long
A crash when trying to add your layer again after a call to removeFromSuperlayer suggests that you're not retaining the layer and it's been autoreleased. You either need to re-allocate each time or retain it yourself. How are you allocating your CALayer inside of your Layer object? -Matt

subLayers - GPU - optimizing

2009-03-09 Thread rajesh
Hi all, sorry for bad subject line, again :) I have a layer backed view, I am trying to add subLayers roughly sized around 300 X 270 (in pixels ) to it, its that the, sublayers count may reach upto the 1000 to 2000 in number and not to mention each of sublayer is again scalable to roughly