Re: Drawing over a view's subviews
Re: Drawing over a view's subviews
- Subject: Re: Drawing over a view's subviews
- From: Scott Thompson <email@hidden>
- Date: Thu, 16 Jun 2005 12:47:23 -0500
On 15 juin 05, at 22:44, John Stiles wrote:
Out of curiosity, why would the overlay window approach have too
much overhead?
It ought to be composited on the GPU so it's not going to waste a
lot of CPU cycles (well, technically, when it's first created the
CPU needs to allocate a back buffer etc).
Strictly playing devil's advocate...
One way this is using overhead is in the fact that the back buffer
for the overlay window has to keep a pixel image for the entire
window. Since the majority of the window will be transparent... you
could consider that excessive overhead.
Of course, if that's a problem there's nothing keeping you from
creating lots of small, individual overlay windows, one for each
handle. I believe that IB, in the past, used to use a separate
window for every "kink" in a line that it drew for indicating a
connection (in fact, it may still do that).
It's a bit of a stretch... but it's still an argument :-)
Scott
_______________________________________________
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