Re: CA transition suddenly too fast
Re: CA transition suddenly too fast
- Subject: Re: CA transition suddenly too fast
- From: Fritz Anderson <email@hidden>
- Date: Mon, 8 Mar 2010 12:04:37 -0600
On 8 Mar 2010, at 11:46 AM, Fritz Anderson wrote:
> I've changed the bus-stop layers from being single CATextLayers (bad layout) to CALayers with text sublayers). That approximately quadrupled the stop-related layers.
>
> Since then, the card flip has become almost instantaneous. You can see the edges move if you look carefully, but the visual effect of a flip is essentially gone.
H'm. After running a few minutes, I find that the transition is back to normal.
I'd still like to know what was causing the problem, because I take it as a sign I don't have adequate control over my application.
A possible consideration: Transitions between routes is done on an NSTimer handler. My route iterator does one or more synchronous downloads [NSData dataWithContentsOfURL:], parses some XML, distributes the results among some Core Data objects, and then updates the map layers. I don't have any control over the responsiveness of the server.*
The point is, I'm out of the standard runloop mode for a second or so before I start the animations and return to the runloop. Is that a possible explanation?
— F
---
* I'm aware that, to paraphrase the Frankenstein monster, "synchronous bad, asynchronous good," but factoring my iteration and error handling into several methods is a treat I've reserved for later.
_______________________________________________
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