• 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
Adding sublayer causes dropped frames?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding sublayer causes dropped frames?


  • Subject: Adding sublayer causes dropped frames?
  • From: Britt Durbrow <email@hidden>
  • Date: Sat, 4 Oct 2008 19:32:42 -0700

Hi -

I'm having a weird problem with Core Animation. What I've got is a small particle system, with one layer per particle. There are only 10-20 particles in the system at any given time. The system updates the layers at 60 Hz from an NSTimer, and disables automatic animations during the update.

What seems to be happening is that every time a new particle is added, a few frames get dropped from the display (but, not the calculations). Logging the time delta's between timer firings shows that the timer is not missing firings. Turning off layer additions for new particles prevents the problem (i.e, the particles - with all the associated infrastructure, collision handling, etc - are instantiated, and added to the system, only the addSublayer call is skipped). It's like adding the layer suppresses the redraw of the view for a few cycles... ?!?

Anybody have any ideas?


_______________________________________________

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


  • Prev by Date: Re: Should not use mogenerator in Mac OS 10.5+ ?
  • Next by Date: Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?
  • Previous by thread: Re: NSURLConnection willSendRequest: not behaving as expected on a 302 response - no further response after nil return
  • Next by thread: Best way to implement a "dynamic" panel
  • Index(es):
    • Date
    • Thread