• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone resource cache - memory question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone resource cache - memory question


  • Subject: Re: iPhone resource cache - memory question
  • From: David Duncan <email@hidden>
  • Date: Thu, 6 May 2010 11:02:50 -0700

On May 6, 2010, at 10:13 AM, Philip Mobley wrote:

> I am trying to implement David Duncan's suggestion, but because I am dealing with images and sound, its not clear how much memory is actually being used (although worst case estimates can be made).


For images I would use a cost estimate of width * height * 4 (this is typically what the memory cost to decompress and display an optimized PNG). For audio this is more difficult as it is unlikely that the entire file will be loaded into memory, or even that a significant amount of it will be loaded into memory unless it is playing (in which case you do not want to unload it).
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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

  • Follow-Ups:
    • Re: iPhone resource cache - memory question
      • From: Philip Mobley <email@hidden>
    • Re: iPhone resource cache - memory question
      • From: Jens Alfke <email@hidden>
References: 
 >Re: iPhone resource cache - memory question (From: Shripada Hebbar <email@hidden>)
 >Re: iPhone resource cache - memory question (From: Philip Mobley <email@hidden>)

  • Prev by Date: Re: Timing distributed notifications
  • Next by Date: Re: iPhone resource cache - memory question
  • Previous by thread: Re: iPhone resource cache - memory question
  • Next by thread: Re: iPhone resource cache - memory question
  • Index(es):
    • Date
    • Thread