Pages: [1]   Go Down
  Print  
Author Topic: How the new Apple TV uses On-Demand Resources to host great apps and games  (Read 540 times)
HCK
Global Moderator
Hero Member
*****
Posts: 79425



« on: September 12, 2015, 03:00:18 am »

How the new Apple TV uses On-Demand Resources to host great apps and games

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p><a href='http://www.imore.com/how-new-apple-tv-uses-demand-resources-host-great-apps-and-games' title="How the new Apple TV uses On-Demand Resources to host great apps and games"><img src='http://www.imore.com/sites/imore.com/files/styles/large_wm_blb/public/field/image/2015/09/apple-tv-press-remote-hero.jpg?itok=40k3d-cq' />[/url]</p> <p class="intro">No, Apple TV apps aren't limited to 200MB — they use on-demand resources.</p> <p>Based on a screenshot from Apple's developer guidelines, there are some folks up in arms about the new Apple TV's 200MB limit for app bundles (the app you download from the Apple TV's App Store).</p> <p>200MB isn't a whole lot of storage for game levels, offline content services, or anything really of the sort. The good news is, 200MB is just the size limit for your initial App Store download. Once you open the app, you can download up to 2GB more per app, with up to 20GB of other resources available in the cloud. Apple lets developers do this by using On-Demand Resources, and here's how it works.</p> <h2>On-Demand Resources 101</h2> <p>Let's say you, the developer, make a side-scroller app for the Apple TV with 50 levels. All together, your app bundle comes out to be something like 4GB—too much for the Apple TV's App Store to properly host. Instead, you can take avantage of a new tvOS/iOS feature called On-Demand Resources to slice up your app and deliver it in parts to the user.</p> <p>Instead of making the user download 4GB off the bat, you slice up your app into a bunch of sections, called tags. You include the essential parts of the app—loading and launch screen, scores, settings, and the first five levels—in that 200MB bundle.</p> <p>Other levels and assets are split into multiple tags that range in size from 64MB to 512MB. If you sliced up tags that all sized out to 100MB for your game, for instance, you'd have 38 additional items for download once a user installs the game. Those don't come all at once, however: They're called on-demand, when a user needs them.</p> <h2>How On-Demand Resources work in action</h2> <p>When a user downloads your app, they're downloading that initial 200MB app bundle, with all the basics held within it. From there, developers can also mark up to 2GB in initial install tags for download upon install—this means that when a user finishes installing and opens the app, they can get up to two additional gigabytes worth of resources in the background.</p> <p>In our scenario above, the initial 200MB bundle might just be your game's launch screen and the like; once a user opens your app for the first time, however, it would call an additional 2GB that included the first 25 levels.</p> <p><a href='http://www.imore.com/how-new-apple-tv-uses-demand-resources-host-great-apps-and-games' title="How the new Apple TV uses On-Demand Resources to host great apps and games"><img src='?itok=uvf5bdNA' />[/url]</p> <p>At this point, your game is using 2.2GB of data—2GB of on-demand resources, locally downloaded, plus the other 200MB from the original app bundle. This is the true storage number that the Apple TV supports at any one time: 2.2GB.</p> <p>But: You have a 4GB game! How do you get those other 25 levels?</p> <p>Easily, thanks to the power of background processing. On-Demand Resources works in conjunction with whatever your user is actively accessing, and will flush older, unused content to make room for additional resources. If a user is playing level 24 of your game, the system automatically flushes a few 100MB tags of old levels (say, 1-5) to make room for levels 25-30. As the user gets further into your game, older levels drop off and get deleted from the Apple TV, and your new levels (also in tag bundles) get installed—all in the background.</p> <p>You can host up to 20GB of On-Demand Resources on the Apple TV's App Store. Though our hypothetical game may only take up 4GB, the 20GB offers a lot of potential for other, more complex games and apps.</p> <h2>TL;DR: There's a lot of potential for games and apps on the store</h2> <p>To to recap: 200MB is the initial app bundle. 2.2GB is how much space an app can take up at any one point. 20GB is the maximum amount of Apple-hosted resources you can have for any one app.</p> <p>In contrast, iOS allows up to 2GB for an initial app bundle, with another 2GB available in tags, for a total of 4GB in space per app. So the Apple TV is working with less space than iOS, yes. But it's not hampered to 200MB apps.</p> <p>Many thanks to Apple's excellent developer documentation on On-Demand Resources for helping straighten this out. Any other questions about this? Let me know in the comments and I'll try to sort it out.</p> </div></div></div><br clear='all'/>

<a href="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/1/rc.htm" rel="nofollow"><img src="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/1/rc.img" border="0"/>[/url]

<a href="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/2/rc.htm" rel="nofollow"><img src="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/2/rc.img" border="0"/>[/url]

<a href="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/3/rc.htm" rel="nofollow"><img src="http://rc.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/rc/3/rc.img" border="0"/>[/url]

<img src="[url]http://da.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/a2.img" border="0"/>[/url]<img width="1" height="1" src="http://pi.feedsportal.com/r/238385576572/u/49/f/616881/c/33998/s/49c5a45e/sc/28/a2t.img" border="0"/><img width='1' height='1' src='' border='0'/><img src="http://feeds.feedburner.com/~r/TheIphoneBlog/~4/XKY05RaXZfM" height="1" width="1" alt=""/>

Source: How the new Apple TV uses On-Demand Resources to host great apps and games
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: