Improving Performance by Changing the Visual Experience

Tips Search

Improving Performance by Changing the Visual Experience

  • Comments 4

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:

image

 

Uncheck the "Automatically adjust visual experience based on client performance" checkbox:

image

 

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:

http://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:

http://blogs.msdn.com/b/jgoldb/archive/2010/02/27/optimizing-visual-studio-2010-and-wpf-applications-for-remote-desktop.aspx

  • I'm sorry, but I'm not seeing this option is VS2008.

  • 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!

  • Richard and Dave -- yeah looks like I need to mod the post based on this info.  I'll do it later tonight...

    Z

  • 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

Page 1 of 1 (4 items)
Leave a Comment
  • Please add 8 and 6 and type the answer here:
  • Post