Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista technology newsgroups > WinFX General

AllowTransparency=True = CPU > 90%

Closed Thread
 
Thread Tools Display Modes
Old 05-31-2007   #1 (permalink)
Guest
 
Posts: n/a

AllowTransparency=True = CPU > 90%

Hi,

Just this question for people who can confirm this:

- A WPF normal window is rendered by GPU acceleration
- A WPF window with AllowTransparency="True" is rendered by CPU
The question is here cause I saw the performance are very bad when moving or
resizing (by event + code)

It true, the next question is why WPF doesn't use GPU for transparent window
?

Thx
-Vince


 

Old 06-01-2007   #2 (permalink)
Laurent Bugnion, MVP
Guest
 
Posts: n/a

Re: AllowTransparency=True = CPU > 90%

Hi,

vrithner@hotmail.com wrote:
> Hi,
>
> Just this question for people who can confirm this:
>
> - A WPF normal window is rendered by GPU acceleration
> - A WPF window with AllowTransparency="True" is rendered by CPU
> The question is here cause I saw the performance are very bad when
> moving or
> resizing (by event + code)
>
> It true, the next question is why WPF doesn't use GPU for transparent
> window
> ?
>
> Thx
> -Vince


That's correct on XP, but the good news is that transparent windows are
hardware accelerated on Vista. I am not sure what the exact reason is.

As an alternative, if you do CPU-intensive stuff in a transparent
window, you can use a Win32 window and include your WPF stuf into it.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
 
Closed Thread

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46