Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I discover my end user's users' system performance settings?

How can I discover my end users' system performance settings (visual effects, etc.)? I want to make my WPF application compatible with those settings.

Is there any standard routine to do this or do I just have to read sysinfo?

like image 806
Jalal Avatar asked Jul 22 '10 04:07

Jalal


1 Answers

You can check the Rendering tier value of the graphic card using the Tier property in the RenderCapability class which is static.

For information on Rendering tiers you can check this

The values would correspond to the amount of hardware acceleration the card could provide.

If you check the link, you can find that the first 16 bit is the required one and you have to bitshift by 16.

int renderingTier = (RenderCapability.Tier >> 16);
if (renderingTier == 0)
{
    Trace.WriteLine("No graphics hardware acceleration available");
}
else if (renderingTier == 1)
{
    Trace.WriteLine("Partial graphics hardware acceleration available");
}
else if (renderingTier == 2)
{
    Trace.WriteLine("Gotcha!!!");
}
like image 83
Amsakanna Avatar answered Oct 18 '22 17:10

Amsakanna