Re: Allocating too much memory kills my App rather than returning NULL
Re: Allocating too much memory kills my App rather than returning NULL
- Subject: Re: Allocating too much memory kills my App rather than returning NULL
- From: David Duncan <email@hidden>
- Date: Wed, 9 Nov 2011 13:00:44 -0800
On Nov 8, 2011, at 10:51 PM, Don Quixote de la Mancha wrote:
> It's user-configurable. If the user asks for too big a grid, I want to be able to tell them that there isn't enough memory, then suggest they try a smaller grid.
In a naive implementation using 1 byte per cell and a full duplicate of state for advancement, you can support an 8192x8192 grid in 128MB of memory, which while high is supportable on all devices that support iOS 5. With various optimizations you can increase this size significantly of course.
But at a completely practical level, is 8K x 8K not a big enough max grid size?
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden