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 stra

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 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 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

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

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

Re: Round corners of borderless NSWindow without set it transparent

2012-03-02 Thread Andrea3000
gt; Gary L. Wade (Sent from my iPhone) > http://www.garywade.com/ > > On Mar 2, 2012, at 9:29 AM, Andrea3000 wrote: > >> >> Il giorno 29/feb/2012, alle ore 22:43, Andrea3000 ha scritto: >> >>> I'm sorry if you think I'm too lazy to debug it myself.

Re: Round corners of borderless NSWindow without set it transparent

2012-03-02 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 22:43, Andrea3000 ha scritto: > I'm sorry if you think I'm too lazy to debug it myself. I never intended to > implicitly ask you to download and debug the app for me, believe me. > > I posted a demo project simply because I think that t

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 21:26, Fritz Anderson ha scritto: > On 29 Feb 2012, at 11:14 AM, Andrea3000 wrote: > >> I've used Instruments and the only relevant thing that I've noticed is that >> when the window is opaque and I resize it like a mad, WindowServer

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 29/feb/2012, alle ore 17:56, Corbin Dunn ha scritto: > > On Feb 28, 2012, at 12:54 PM, Andrea3000 wrote: > >> Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: >> >>> >>> On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: >>&

Re: Round corners of borderless NSWindow without set it transparent

2012-02-29 Thread Andrea3000
Il giorno 28/feb/2012, alle ore 21:54, Andrea3000 ha scritto: > Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: >> >> Did you sample it or use Instruments? What is slow? > > The resize is slow. > When the window is small I can resize it as fast

Re: Round corners of borderless NSWindow without set it transparent

2012-02-28 Thread Andrea3000
Il giorno 28/feb/2012, alle ore 20:20, Corbin Dunn ha scritto: > > On Feb 27, 2012, at 11:51 PM, Andrea3000 wrote: >> >> When the window is small it's as fast as if it were opaque but when it >> occupies quite all the screen (1920x1080) it becomes noticeably slo

Re: Round corners of borderless NSWindow without set it transparent

2012-02-28 Thread Andrea3000
Thank you for the answer. Il giorno 28/feb/2012, alle ore 06:36, Seth Willits ha scritto: > On Feb 27, 2012, at 5:45 AM, Andrea3000 wrote: > >> Then, if I set my NSWindow non-opaque I correctly get rounded corners but >> the window becomes very slow expecially during resize

Round corners of borderless NSWindow without set it transparent

2012-02-27 Thread Andrea3000
I'm trying to round edges of a borderless NSWindow without having to mark it as transparent with setOpaque:NO. My testbed is made only of a borderless NSWindow, its Content View and a regular NSView. The NSView is subclassed to override drawRect method in order to round corners of the view. Th