Improving Performance by Changing the Visual Experience
Menu: Tools -> Options -> Environment -> General -> Visual Experience
Versions: 2010
Published: 6/22/2010
Code: vstipEnv0017
Visual Studio 2010 automatically adjusts the Visual Studio visual experience depending on the situation. For example, the use of gradients and animations is usually eliminated (or reduced) when running Visual Studio over Remote Desktop or in a virtual machine environment. It also makes use of hardware graphics acceleration when it is available.
In some situations, you can improve your Visual Studio performance by changing your Visual Experience. To change these settings just go to Tools -> Options -> Environment -> General -> Visual Experience:
Uncheck the "Automatically adjust visual experience based on client performance" checkbox:
NOTE: As you work with these options, the message at the bottom will not change until you click "OK" to commit the changes you have made.
Let's review what each of these options does:
Enable rich client visual experience - This options gives you gradients and animations (aka "eye candy") for things like sliding tool windows, etc. If you leave this option checked it will use these rich animations in ALL scenarios including remote sessions. This option should be turned off to usually get a bump in performance.
Use hardware graphics acceleration if possible - This option will let you decide if WPF hardware acceleration is something you want. Usually you will clearly notice a change in performance when you turn this on or off.
NOTE: If you have a system that isn't hurting by having the animations and gradients on then there is nothing wrong with a little eye candy so this is really for those folks who are having a issues in their VS experience either locally or remotely.
Okay, now that you have played with the options a bit you may be wondering if there is a way to actually SEE how the performance is doing. Fortunately you can! There is a tool that allows you to measure WPF performance called WPFPerf included in the Windows SDK. You can find a great article on how to use it here:
https://windowsclient.net/wpf/perf/wpf-perf-tool.aspx
Also, when using VS2010 over remote sessions, you should definitely read this article on how to dramatically improve performance over RDP:
Comments
Anonymous
June 21, 2010
I'm sorry, but I'm not seeing this option is VS2008.Anonymous
June 21, 2010
You're right - this is only in VS2010. I believe it's related to WPF hardware acceleration. The VS shell in 2008 is based on old GDI tech. NB: the default hardware acceleration actually ended up slowing my VS sessions to a crawl on my laptop (Intel Graphics 'accelerator' onboard). Disabling this option improved things immeasurably. MS should turn this off for these sorts of devices, or at least bring it to people's attention. It was like night and day!Anonymous
June 22, 2010
The comment has been removedAnonymous
June 23, 2010
Done! I pretty much re-wrote the tip as I wasn't happy with it overall. See what you think of the new one :) Z