Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - AllowTransparency=True = CPU > 90%

 
 
Old 05-31-2007   #1 (permalink)


 
 

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



My System SpecsSystem Spec
Old 06-01-2007   #2 (permalink)
Laurent Bugnion, MVP


 
 

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
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Operator -not should get True for whatever -eq 0 gets True (and morefun) PowerShell
True number of true Vista users Vista General


Vista Forums 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 Ltd

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