CATiledLayer synchronization problem
CATiledLayer synchronization problem
- Subject: CATiledLayer synchronization problem
- From: Raphael Sebbe <email@hidden>
- Date: Fri, 27 Feb 2009 14:24:17 +0100
Hi the list,
Using CATiledLayer lately, which works great except for one thing.
:::Main Thread:::
[tiledLayer setNeedsDisplay]
[model change]
[tiledLayer setNeedsDisplay]; // not all tiles have been drawn at this
point
:::Tiled Layer Thread:::
[delegate drawLayer...]
Invoking second setNeedsDisplay marks all the tiles as dirty except the one
being drawn at that time. I believe this is not a correct behavior in
CATiledLayer. Or is it, but please explain?
I made the [delegate drawLayer:...] and the [model change] atomic, but this
is not sufficient to get it right all the time (synchronization should be in
the callers).
What I sometimes get is one of the tiles that is not correctly drawn. (and
no way of redrawing only that one)
Any thought on this?
Thank you,
Raphael
_______________________________________________
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