Re: Extremely low fps during transparent NSWindow resize
Re: Extremely low fps during transparent NSWindow resize
- Subject: Re: Extremely low fps during transparent NSWindow resize
- From: Andrea3000 <email@hidden>
- Date: Mon, 05 Nov 2012 23:20:36 +0100
>>> There is (or was) a QuartzDebug option to show which parts of a window are actually transparent; on the standard windows only the corners are transparent, so for most of the window area the system can use the faster opaque calculations. I never filed a bug requesting a way for non-Apple code to do that because I didn't think it would be that generally useful - we make "transparent" windows to reproduce the odd shapes that Windows (the OS) provides for our virtual machines.
>>
>> Unfortunately, I don't find any option in QuartzDebug to show which part of a window is transparent.
>>
> It was enabled with a hidden QuartzDebug default - QDEnableAppleInternal - but it doesn't seem to work on QD 4.2.
>
>> Do you know if it is possible to play with -displayInRectIgnoringOpacity: and friends to achive what Apple does on standard windows?
>
>
> I've never tried it - I'm not actually the person who deals with the custom window drawing - but I don't think that method has anything to do with how the drawing code deals with windows under the window you're drawing, which is where the window transparency causes a slowdown.
>
> From what I gathered from my coworker, the opaque windows with transparent regions are implemented using much lower level code than Cocoa can reach.
Since I still have a Snow Leopard partition I have access to QuartDebug 4.1 and the hidden setting you suggested works as expected.
The strange thing is that while regular windows like Safari, Mail, ecc, are all opaque except for the corners (as pointed out in the previous mail), Quick Time Player X window is fully transparent!
So the question is still open. How can Quick Time Player X be so fast during resize if it is an all transparent window?
Regards
Andrea
_______________________________________________
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