Re: black flashes when updating CALayer content
Re: black flashes when updating CALayer content
- Subject: Re: black flashes when updating CALayer content
- From: Gideon King <email@hidden>
- Date: Fri, 25 Feb 2011 06:58:04 +1000
I have seen this too. Exactly the same scenario. I have it on my urgent to-do list to look at, but have not got to it yet. It was first reported to me by a user and we could never reproduce it here, but another user has sent us a file which exhibits the problem on all the machines I have tried.
In the first scenario, the user was able to reproduce the problem only when her mouse was over the right side of her screen (!) and the mouse move was trying to add or remove some small sublayers (that was on a MacBook). The new file which exhibits the problem on at least the 3 machines we have tested so far has quite a large view with quite a lot of layers, and again exhibits itself when the user moves their mouse and in response I want to add or remove some small sublayers (controls for working on some graphical objects).
Sometimes the flickering looks like static rather than just flickering to black. I have a strong suspicion that something is going beyond video memory limitations. My setup is a view hosting a tiled layer which I never draw anything on, and then a whole bunch of sublayers which I draw myself, and then some other sublayers that I add to the tiled layer when I need them, in response to a mouse moved event. I draw virtually all my layers myself, and do not have a deep layer hierarchy - basically just lots of layers as immediate sublayers of my main tiled layer.
At this stage I haven't had time to do any thorough investigation into the problem, and have absolutely no idea what I can do to work around the issue, since there is nothing unusual that I can see in any of my code that could trigger something like that. I'm very keen to hear any suggestions, and if there are no suggestions forthcoming by the middle of next week, I'll be having an in depth look at the issue then.
My application is in pre-beta testing phase at the moment, and I need to get this issue resolved before we can go into beta.
Regards
Gideon
On 25/02/2011, at 3:50 AM, Markus Spoettl wrote:
>
> Sometimes - randomly and very infrequently - I get a very flash of complete blackness or whiteness in the same screen area the layer it updated. I would guess it lasts only one screen refresh cycle, so the flash is really very brief.
_______________________________________________
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