Re: Extremely low fps during transparent NSWindow resize

2012-11-06 Thread Andrea3000
> On Nov 5, 2012, at 5:39 PM, Kyle Sluder wrote: > >> On Mon, Nov 5, 2012, at 02:20 PM, Andrea3000 wrote: >>> 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

Re: Extremely low fps during transparent NSWindow resize

2012-11-05 Thread Ken Thomases
On Nov 5, 2012, at 5:39 PM, Kyle Sluder wrote: > On Mon, Nov 5, 2012, at 02:20 PM, Andrea3000 wrote: >> 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 Saf

Re: Extremely low fps during transparent NSWindow resize

2012-11-05 Thread Kyle Sluder
On Mon, Nov 5, 2012, at 02:20 PM, Andrea3000 wrote: > 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 corne

Re: Extremely low fps during transparent NSWindow resize

2012-11-05 Thread Andrea3000
>>> 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 no

Re: Extremely low fps during transparent NSWindow resize

2012-11-05 Thread Andrea3000
> 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

Fwd: Extremely low fps during transparent NSWindow resize

2012-11-05 Thread Andrea3000
> 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

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Lee Ann Rucker
Sunday, November 4, 2012 4:52:12 AM Subject: Re: Extremely low fps during transparent NSWindow resize > On Nov 4, 2012, at 4:52 AM, Andrea3000 wrote: > >>> This suggests that the limiting factor is the GPU and/or the window >>> server's throttling of the refresh ra

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Andrea3000
> Andrea, > >> if (self = [super initWithContentRect: contentRect >> styleMask: NSBorderlessWindowMask >> backing: bufferingType >> defer: flag]) > > Sei sicuro bufferingType è uguale a NSBackingStor

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Vincent Habchi
Andrea, >if (self = [super initWithContentRect: contentRect >styleMask: NSBorderlessWindowMask > backing: bufferingType >defer: flag]) Sei sicuro bufferingType è uguale a NSBackingStoreBuffere

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Andrea3000
> On Nov 4, 2012, at 4:52 AM, Andrea3000 wrote: > >>> This suggests that the limiting factor is the GPU and/or the window >>> server's throttling of the refresh rate. So, the process isn't using much >>> CPU time because it's blocked waiting for the GPU or window server to >>> recomposite the

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Ken Thomases
On Nov 4, 2012, at 4:52 AM, Andrea3000 wrote: >> This suggests that the limiting factor is the GPU and/or the window server's >> throttling of the refresh rate. So, the process isn't using much CPU time >> because it's blocked waiting for the GPU or window server to recomposite the >> window i

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Andrea3000
> On Nov 1, 2012, at 6:48 AM, Andrea3000 wrote: > >> I'm trying to address a performance problem regarding transparent NSWindows >> during resize. > >> This way I have a borderless NSWindow which is transparent with a NSView >> that draws an opaque NSRect with rounded corners. >> Therefore it

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Ken Thomases
On Nov 4, 2012, at 1:57 AM, Markus Spoettl wrote: > On 11/4/12 2:27 AM, Ken Thomases wrote: >> Maybe a better approach would be to use Core Animation layers. Those can >> have rounded corners and that may allow the system to update them in a better >> manner. > > I'm curious, what you mean by th

Re: Extremely low fps during transparent NSWindow resize

2012-11-04 Thread Markus Spoettl
On 11/4/12 2:27 AM, Ken Thomases wrote: Maybe a better approach would be to use Core Animation layers. Those can have rounded corners and that may allow the system to update them in a better manner. I'm curious, what you mean by that, how would that work? You need to host layers in a view in

Re: Extremely low fps during transparent NSWindow resize

2012-11-03 Thread Ken Thomases
On Nov 1, 2012, at 6:48 AM, Andrea3000 wrote: > I'm trying to address a performance problem regarding transparent NSWindows > during resize. > This way I have a borderless NSWindow which is transparent with a NSView that > draws an opaque NSRect with rounded corners. > Therefore it gives me a

Extremely low fps during transparent NSWindow resize

2012-11-01 Thread Andrea3000
Hi, I'm trying to address a performance problem regarding transparent NSWindows during resize. I have created a new Cocoa Application from Xcode's templates, overriding both NSWindow and NSView as follows: @implementa