<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: I Want My Memory, Apple!</title>
	<atom:link href="http://gamesfromwithin.com/i-want-my-memory-apple/feed" rel="self" type="application/rss+xml" />
	<link>http://gamesfromwithin.com/i-want-my-memory-apple</link>
	<description>Living the indie life</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:36:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Keith Lazuka</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-2406</link>
		<dc:creator>Keith Lazuka</dc:creator>
		<pubDate>Thu, 23 Jul 2009 00:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-2406</guid>
		<description>Apple engineer &quot;eskimo1&quot; wrote a detailed reply about the iPhone&#039;s virtual memory system on the Apple Developer Forums: https://devforums.apple.com/message/49187#49187</description>
		<content:encoded><![CDATA[<p>Apple engineer &#8220;eskimo1&#8243; wrote a detailed reply about the iPhone&#8217;s virtual memory system on the Apple Developer Forums: <a href="https://devforums.apple.com/message/49187#49187" rel="nofollow">https://devforums.apple.com/message/49187#49187</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A First Exposure to Memory Managment on the iphone</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-2247</link>
		<dc:creator>A First Exposure to Memory Managment on the iphone</dc:creator>
		<pubDate>Fri, 17 Jul 2009 03:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-2247</guid>
		<description>[...] http://gamesfromwithin.com/?p=428 has a great blog post/discussion about memory concerns with regard to iphone development; much more [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://gamesfromwithin.com/?p=428" rel="nofollow">http://gamesfromwithin.com/?p=428</a> has a great blog post/discussion about memory concerns with regard to iphone development; much more [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1975</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Mon, 01 Jun 2009 00:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1975</guid>
		<description>Valentin, you should read my &lt;a href=&quot;http://gamesfromwithin.com/?p=483&quot; rel=&quot;nofollow&quot;&gt;next post on memory and virtual memory systems&lt;/a&gt; :-)</description>
		<content:encoded><![CDATA[<p>Valentin, you should read my <a href="http://gamesfromwithin.com/?p=483" rel="nofollow">next post on memory and virtual memory systems</a> <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valentin</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1970</link>
		<dc:creator>Valentin</dc:creator>
		<pubDate>Sat, 30 May 2009 19:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1970</guid>
		<description>

I&#039;m not an OS programmer nor a dev. , but I&#039;m just wondering why isn&#039;t there an appication for the iPhone that can solve this issue like the Paging file in the Windows OS? On the smallest iPhones there are 8GB of HDD memory. With the OS on them there still are more than 6.5 GB of space. Why not create a program that allows ppl to allocate an amount of virtual memory to the OS? 64, 128 or 256 extra MB would solve all those problems users/devs are facing with.

Sorry if I&#039;m talking nonsense for you guys, but as I said, I&#039;m not a connaisseur .</description>
		<content:encoded><![CDATA[<p>I&#8217;m not an OS programmer nor a dev. , but I&#8217;m just wondering why isn&#8217;t there an appication for the iPhone that can solve this issue like the Paging file in the Windows OS? On the smallest iPhones there are 8GB of HDD memory. With the OS on them there still are more than 6.5 GB of space. Why not create a program that allows ppl to allocate an amount of virtual memory to the OS? 64, 128 or 256 extra MB would solve all those problems users/devs are facing with.</p>
<p>Sorry if I&#8217;m talking nonsense for you guys, but as I said, I&#8217;m not a connaisseur .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtual Memory Paging Is The Lazy Man&#8217;s Caching Scheme</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1953</link>
		<dc:creator>Virtual Memory Paging Is The Lazy Man&#8217;s Caching Scheme</dc:creator>
		<pubDate>Fri, 22 May 2009 18:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1953</guid>
		<description>[...] of the unintended side effects of my previous post on the horrible memory situation on the iPhone, was that some people pointed out it was possible to hook up a disk storage back end to the [...]</description>
		<content:encoded><![CDATA[<p>[...] of the unintended side effects of my previous post on the horrible memory situation on the iPhone, was that some people pointed out it was possible to hook up a disk storage back end to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Where&#8217;d That Memory Go?</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1939</link>
		<dc:creator>Where&#8217;d That Memory Go?</dc:creator>
		<pubDate>Fri, 15 May 2009 22:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1939</guid>
		<description>[...] My recent rant about the dismal situation of memory in the iPhone quickly became quite popular. Most people were either unaware of the situation, or completely agreed that it was a major stumbling block for any app that tries to make good use of the hardware. [...]</description>
		<content:encoded><![CDATA[<p>[...] My recent rant about the dismal situation of memory in the iPhone quickly became quite popular. Most people were either unaware of the situation, or completely agreed that it was a major stumbling block for any app that tries to make good use of the hardware. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tip: iPhone Virtual Memory at Under The Bridge</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1938</link>
		<dc:creator>Tip: iPhone Virtual Memory at Under The Bridge</dc:creator>
		<pubDate>Fri, 15 May 2009 05:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1938</guid>
		<description>[...] us correct your misconception. It turns out that, indeed, there actually is. Take a look through this moderately amusing rant about the indeterminacy of memory allotments on the iPhone and into the comments. There&#8217;s a [...]</description>
		<content:encoded><![CDATA[<p>[...] us correct your misconception. It turns out that, indeed, there actually is. Take a look through this moderately amusing rant about the indeterminacy of memory allotments on the iPhone and into the comments. There&#8217;s a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1934</link>
		<dc:creator>Owen</dc:creator>
		<pubDate>Thu, 14 May 2009 12:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1934</guid>
		<description>@Chuck - I actually experimented with that in Dapple during Alpha/Beta testing. The problem was that as soon as that popup comes up, the user immediately thinks that it&#039;s something your app has done wrong, not the phone. I got a bunch of emails from testers after I put that in saying &quot;I think *your app* broke...I got a warning telling me to reboot my phone&quot; (emphasis mine). The problem being that they blame the app, not the OS. It&#039;s a tricky problem to deal with; you want to provide the user with information, but not have them think it&#039;s your fault. ;)</description>
		<content:encoded><![CDATA[<p>@Chuck &#8211; I actually experimented with that in Dapple during Alpha/Beta testing. The problem was that as soon as that popup comes up, the user immediately thinks that it&#8217;s something your app has done wrong, not the phone. I got a bunch of emails from testers after I put that in saying &#8220;I think *your app* broke&#8230;I got a warning telling me to reboot my phone&#8221; (emphasis mine). The problem being that they blame the app, not the OS. It&#8217;s a tricky problem to deal with; you want to provide the user with information, but not have them think it&#8217;s your fault. <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck Smith</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1916</link>
		<dc:creator>Chuck Smith</dc:creator>
		<pubDate>Thu, 07 May 2009 21:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1916</guid>
		<description>I noticed that the Monopoly app gives a warning pretty much every time I run it that it recommends me to reboot my phone.  I remember another wild west shooter that did the same.  It&#039;s a solution, but I admit not a very elegant one.  I also really hope Apple fixes this in 3.0.  I can also imagine that many 1-star app reviews have come from apps crashing on iPhones that were dangerously low on memory.</description>
		<content:encoded><![CDATA[<p>I noticed that the Monopoly app gives a warning pretty much every time I run it that it recommends me to reboot my phone.  I remember another wild west shooter that did the same.  It&#8217;s a solution, but I admit not a very elegant one.  I also really hope Apple fixes this in 3.0.  I can also imagine that many 1-star app reviews have come from apps crashing on iPhones that were dangerously low on memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hendrik</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1915</link>
		<dc:creator>Hendrik</dc:creator>
		<pubDate>Thu, 07 May 2009 20:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1915</guid>
		<description>There actually is a virtual memory system pager. However you have to manually set it up. 
Search for &#039;mmap&#039; in Apple&#039;s iPhone Developer Forum and you&#039;ll find a very informative thread. 
Basically, it works like this: In place of malloc, you create a file of the appropriate size and then memory map that file using mmap. The virtual memory pager will page in and out the memory pages as needed. This works both for read-only data (you can just use [NSData dataWithContentsOfMappedFile: ] for that) as well as read-write memory.</description>
		<content:encoded><![CDATA[<p>There actually is a virtual memory system pager. However you have to manually set it up.<br />
Search for &#8216;mmap&#8217; in Apple&#8217;s iPhone Developer Forum and you&#8217;ll find a very informative thread.<br />
Basically, it works like this: In place of malloc, you create a file of the appropriate size and then memory map that file using mmap. The virtual memory pager will page in and out the memory pages as needed. This works both for read-only data (you can just use [NSData dataWithContentsOfMappedFile: ] for that) as well as read-write memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Darlington</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1913</link>
		<dc:creator>Stephen Darlington</dc:creator>
		<pubDate>Thu, 07 May 2009 19:52:57 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1913</guid>
		<description>One other thing that affects the amount of memory you have available is when a user has jail broken their handset. If it&#039;s also customised with weird versions of SpringBoard you can get up to 10Mb less than a stock iPhone -- and the users complain when your app doesn&#039;t work properly!

No convenient answers I&#039;m afraid. I wrote about this a &lt;a href=&quot;http://www.yummyapp.com/2009/05/pirates-and-jail-break.html&quot; rel=&quot;nofollow&quot;&gt;little more on my blog&lt;/a&gt;, but I definitely agree that one of the nice things about programming for the iPhone is that you&#039;re not working with a moving target.</description>
		<content:encoded><![CDATA[<p>One other thing that affects the amount of memory you have available is when a user has jail broken their handset. If it&#8217;s also customised with weird versions of SpringBoard you can get up to 10Mb less than a stock iPhone &#8212; and the users complain when your app doesn&#8217;t work properly!</p>
<p>No convenient answers I&#8217;m afraid. I wrote about this a <a href="http://www.yummyapp.com/2009/05/pirates-and-jail-break.html" rel="nofollow">little more on my blog</a>, but I definitely agree that one of the nice things about programming for the iPhone is that you&#8217;re not working with a moving target.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Villain</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1912</link>
		<dc:creator>Villain</dc:creator>
		<pubDate>Thu, 07 May 2009 19:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1912</guid>
		<description>Our company is &lt;a href=&quot;http://blog.villainousmind.com/2009/04/ready-for-iphone-development.html&quot; rel=&quot;nofollow&quot;&gt;getting into iPhone development&lt;/a&gt;.  At this point it&#039;s only been prep and research, but we will be hitting it full board soon.

This information is good and will be something for which I now know to watch out.  Great post.  Thanks.</description>
		<content:encoded><![CDATA[<p>Our company is <a href="http://blog.villainousmind.com/2009/04/ready-for-iphone-development.html" rel="nofollow">getting into iPhone development</a>.  At this point it&#8217;s only been prep and research, but we will be hitting it full board soon.</p>
<p>This information is good and will be something for which I now know to watch out.  Great post.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1911</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Thu, 07 May 2009 19:37:49 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1911</guid>
		<description>Graf, I wish I could just allocate all the memory up front. That&#039;s the way I prefer to do it, but there are problems with that. You need to wait for other processes to free memory in order to get your memory, which could be a while (how long? No idea, need to time it). Also, background processes might need more memory all of a sudden (incoming phone call), so you might still be forced to free memory.

I definitely want to experiment with a lot of the suggestions so far. Some of these ways allow us to get around some of the memory problems, or at least make them more predictable. I still wish that Apple could just guarantee a minimum amount of memory though. It would make life a LOT easier!</description>
		<content:encoded><![CDATA[<p>Graf, I wish I could just allocate all the memory up front. That&#8217;s the way I prefer to do it, but there are problems with that. You need to wait for other processes to free memory in order to get your memory, which could be a while (how long? No idea, need to time it). Also, background processes might need more memory all of a sudden (incoming phone call), so you might still be forced to free memory.</p>
<p>I definitely want to experiment with a lot of the suggestions so far. Some of these ways allow us to get around some of the memory problems, or at least make them more predictable. I still wish that Apple could just guarantee a minimum amount of memory though. It would make life a LOT easier!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vezquex</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1910</link>
		<dc:creator>Vezquex</dc:creator>
		<pubDate>Thu, 07 May 2009 19:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1910</guid>
		<description>How lame of Apple. There should be a special game mode that swaps everything to disk so that you can just use all the memory.

And Fisherman, you don&#039;t have to apologize for your English. It&#039;s easily above average.</description>
		<content:encoded><![CDATA[<p>How lame of Apple. There should be a special game mode that swaps everything to disk so that you can just use all the memory.</p>
<p>And Fisherman, you don&#8217;t have to apologize for your English. It&#8217;s easily above average.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graf Algar</title>
		<link>http://gamesfromwithin.com/i-want-my-memory-apple/comment-page-1#comment-1909</link>
		<dc:creator>Graf Algar</dc:creator>
		<pubDate>Thu, 07 May 2009 19:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=428#comment-1909</guid>
		<description>Why not build your own heap class, and at the very start of your game, allocate the max you&#039;ll ever need (say, 20mb or whatever).  For the purposes of your game, only ever alloc/free from that custom heap.

A couple of benefits to this approach:

- You can, at startup, immediately see whether or not you have enough memory available for your game.  If you don&#039;t, either try scrubbing memory, or inform the user to reboot.
- Tighter control of allocations, memory leaks, and so on.  Activity inside of that heap is specific to your game, and so you have the maximum amount of control possible.
- Less chance of running out of memory midgame by way of fragmentation from external parties, assuming you were able to alloc the initial 20mb chunk or whatever.  Basically, if you were able to alloc your heap, you&#039;re 99% guaranteed to run your game without a hitch (memory-wise).
- Makes porting the game to other platforms a little easier - since you&#039;d just have to worry about where the initial mem alloc comes from.  Everything else remains the same.</description>
		<content:encoded><![CDATA[<p>Why not build your own heap class, and at the very start of your game, allocate the max you&#8217;ll ever need (say, 20mb or whatever).  For the purposes of your game, only ever alloc/free from that custom heap.</p>
<p>A couple of benefits to this approach:</p>
<p>- You can, at startup, immediately see whether or not you have enough memory available for your game.  If you don&#8217;t, either try scrubbing memory, or inform the user to reboot.<br />
- Tighter control of allocations, memory leaks, and so on.  Activity inside of that heap is specific to your game, and so you have the maximum amount of control possible.<br />
- Less chance of running out of memory midgame by way of fragmentation from external parties, assuming you were able to alloc the initial 20mb chunk or whatever.  Basically, if you were able to alloc your heap, you&#8217;re 99% guaranteed to run your game without a hitch (memory-wise).<br />
- Makes porting the game to other platforms a little easier &#8211; since you&#8217;d just have to worry about where the initial mem alloc comes from.  Everything else remains the same.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

