Smooth-Line-View icon indicating copy to clipboard operation
Smooth-Line-View copied to clipboard

Memory Warning

Open EricxStone opened this issue 12 years ago • 6 comments

When I try to run this app in iPad (1st gen), it will receive memory warning if I draw a lot of lines. After a few more lines are drawn, the app will crash.

EricxStone avatar Aug 20 '12 06:08 EricxStone

I'm working on a drawing method that uses less memory. I should have that pushed out next week.

levinunnink avatar Aug 20 '12 16:08 levinunnink

Could you please tell me what method did you use? As my project is quite urgent... Thanks

EricxStone avatar Aug 21 '12 02:08 EricxStone

This should be fixed in the latest update. Try it now.

levinunnink avatar Aug 24 '12 17:08 levinunnink

Hi, even I got the memory warning when I tried to draw multiple lines and app is crashing

rahman061235 avatar May 06 '13 13:05 rahman061235

I cannot perform erase and undo operations with latest code.. can you please suggest me how to implement erase and undo with latest code?

thanks, Rahman

rahman061235 avatar May 06 '13 13:05 rahman061235

Have you looked into using CATiledLayer? I have a ~3000x3000 SmoothLineView which used to allocate 100Mb+ during drawing and 40Mb+ after drawing finished. I have switched the layer of the view to CATiledLayer and now the memory footprint is 6Mb for same sized view.

pcki11 avatar Feb 12 '14 15:02 pcki11