WPF hardware acceleration
-
Hello All, If I add certain Shapes (e.g. Polylines) to a WPF Grid (placed inside a WPF window), would they be rendered with hardware acceleration?
Best regards, BB http://bartoszbien.com
-
Hello All, If I add certain Shapes (e.g. Polylines) to a WPF Grid (placed inside a WPF window), would they be rendered with hardware acceleration?
Best regards, BB http://bartoszbien.com
I know that you can actually write code that tells you if hardware acceleration is being used. I believe the answer is 'yes, if you have a good enough graphics card'
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hello All, If I add certain Shapes (e.g. Polylines) to a WPF Grid (placed inside a WPF window), would they be rendered with hardware acceleration?
Best regards, BB http://bartoszbien.com
Bartosz Bien wrote:
would they be rendered with hardware acceleration?
I think they should. Not 100% certain though.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
I know that you can actually write code that tells you if hardware acceleration is being used. I believe the answer is 'yes, if you have a good enough graphics card'
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
You can use the "rendering tier" to get a feeling for the caps of the videocard:
int tier = (System.Media.Rendercapability.Tier >> 16);
0 is bad - only software emulation 1 is ok - the card supports partial accel (DirectX 7 - DirectX 8) 2 is state of the art with full accel