Re: Full screen transparent window
Re: Full screen transparent window
- Subject: Re: Full screen transparent window
- From: Ricky Sharp <email@hidden>
- Date: Thu, 17 Feb 2005 06:10:40 -0600
On Wednesday, February 16, 2005, at 08:45PM, Renaud Boisjoly <email@hidden> wrote:
>Hi all!
>
>What would be a preferred way to optimize performance when drawing in a
>full-screen transparent window which sits above all others?
>
>Right now, I'm using an NSView subclass in my transparent window, set
>optimized drawing in the window, removed shadows, made it transparent
>etc.
>
>in my view, I use NSBezierPath to draw a few lines (nothing
>complicated) but it seems both my app and the WindowServer are taxed a
>lot when moving around the screen...
I'm a bit confused here when you say moving around the screen. Is your window moving? Or just other app windows underneath it?
>Any tips? I searched the list but did not find much relevant to this
>topic.
Initially, a quick "overhead" test could be to have your drawRect: in your view be a NOP. Is it that method that's slowing things down, or do you already have a high overhead in just having the full-screen transparent window in place?
Also, run Shark to see if there is anything you can speed up in your drawing. For example, if your paths are static, you may get some performance gain by caching them; all depends on what Shark tells you.
You can also run Quartz Debug to see exactly what parts of the screen you're updating. Perhaps you can use needsDisplayInRect: to isolate updates to smaller areas.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden