levinunnink / Smooth-Line-View

Smooth & fast line drawing from touch inputs for UIViews using Quartz
MIT License
641 stars 111 forks source link

Memory Warning #7

Open EricxStone opened 12 years ago

EricxStone commented 12 years ago

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.

levinunnink commented 12 years ago

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

EricxStone commented 12 years ago

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

levinunnink commented 12 years ago

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

rahman061235 commented 11 years ago

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

rahman061235 commented 11 years ago

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

pcki11 commented 10 years ago

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.