• 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
Scroller With CATiledLayer Running out of Memory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scroller With CATiledLayer Running out of Memory


  • Subject: Scroller With CATiledLayer Running out of Memory
  • From: Gordon Apple <email@hidden>
  • Date: Fri, 06 Aug 2010 14:29:29 -0500
  • Thread-topic: Scroller With CATiledLayer Running out of Memory

I have a very long text view (CoreText) for iPad.  It a CATiledLayer, 1024 x
512 tiles.  I'm doing optimized drawing (first to last line) in drawRect,
which gets called for each tile.  I have a vertical slider that appears when
you tap the right side in order to fast (live) scroll when needed.

I'm having a major problem.  If I scroll slowly, or in small jumps, no
problem.  However, if I scroll fast over a longer length, the app terminates
with memory exceeded.  I don't believe I have any significant leaks.  This
doesn't happen in the simulator, only on the iPad.  Am I simply outrunning
the app's ability to recover memory?  What gives?

I notice that default fadeDuration for CATiledLayer is 0.25 sec.  However, I
see no way to set this (i.e., to 0.0).  Could this be related to my problem?
Any workarounds?


_______________________________________________

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: Scroller With CATiledLayer Running out of Memory
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: String Tables
  • Next by Date: Re: Scroller With CATiledLayer Running out of Memory
  • Previous by thread: Re: keyboard shortcut for segments of a segmented control?
  • Next by thread: Re: Scroller With CATiledLayer Running out of Memory
  • Index(es):
    • Date
    • Thread