This is a mirror of official site: http://jasper-net.blogspot.com/

VS2010 Performance and Bad Video Drivers/Hardware - Redux

| Sunday, September 19, 2010
Since we shipped Visual Studio 2010 we've continued to have a small but notable series of complaints about performance that we've been able to attribute to bugs in video drivers and GPUs.

The issue first came up back during VS 2010 beta in October of 2009.  Since then we've learned that while old, buggy drivers are the usual cause, some newer drivers and GPUs aren't as good at supporting VS's UI as we'd like.

Fortunately, the software rendering inside WPF is pretty good, so the easy fix here is to force WPF to ignore the GPU and use software rendering (I've tested this on my own system, and I found that WPF's software rendering was actually slightly faster than GPU based rendering on my high end CPU with a mid-range graphics card - your mileage may vary).

But first, if you're seeing slow / broken screen updates you should verify you have the latest display drivers for your system.  (See "Guidelines for troubleshooting graphics issues in WPF applications" for more information.)

If that doesn't fix it, then there are three ways to force WPF to use software rendering.

First and preferred, the final RTM version of VS2010 includes a UI for forcing hardware rendering off - for just VS.  With VS2010 open, go to Tools | Options, then select Environment | General (as shown below).  Then uncheck "Automatically adjust visual experience..." and "Use hardware graphics acceleration..."

0513.Turn-off-HW-acceleration.png

Posted via email from .NET Info

0 comments: