Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WPF development feasible under VM? [closed]

After reading how to keep your dev machine from slowing down, I was reminded of my good intention a year ago to build a VM for my development machine.

However, I'm developing WPF and SilverLight GUIs on Vista x64. I can run x64 versions of the OS under a VM but I'm concerned about graphic performance for WPF and especially running Expression Blend. I expect to need the GPU!

I currently have Virtual PC VM for XP 32-bit testing. Is that or a version of VMWare likely to be better for WPF, and if so, are there any version differences? I can already create VMs with my VMWare Fusion on OS/X so just using the free VMWare Player is fine - I haven't been able to find any comments about differences in GPU support between Player and Workstation.

My main Windows dev machine is only a Dell laptop (Latitude 830) with 4GB RAM but I have to work on a laptop for client visits so I'm not inclined to shell out for an additional desktop.

like image 629
Andy Dent Avatar asked Feb 08 '09 13:02

Andy Dent


3 Answers

Having tried it myself, I'd reocmmend avoiding using a VM for WPF development. The WPF engine relies on DirectX accelaration in order to render content, and DirectX support is incomplete on VMWare (albeit miles better than MS Virtual PC's non-existent DirectX support).

The problem you're going to face is that Visual Studio and Expression both constantly re-render your XAML while you're working on it, which requires heavy significant GPU bandwidth. Working inside a VM simply doesn't cut it and, depending on your set up, you'll either experience black/blank or unresponsive designer windows in VS 2008.

If at all possible, stick with developing on your local desktop.

like image 66
Mark Avatar answered Nov 10 '22 09:11

Mark


How does putting your development environment inside a VM helps your productivity?

If your development tool slow down your computer this will leave the host OS fast and snappy, but you have to work inside the slow VM where your development tools are - so I suspect you are keeping the part of the computer you use to play solitaire fast by making the part you use to work slower.

How is this productive?

Also, VMs work best when you have lots and lots of memory and the VM file is located on a different physical disk then you Windows installation - both not easily done on a laptop.

like image 24
Nir Avatar answered Nov 10 '22 09:11

Nir


Parallels 5 seems much faster than my Fusion VM at WPF. VS2010 loads much much faster and doesn't have all of the video glitches... This kinda sucks because I've been using Fusion for the last few years and don't want to switch, but P5 seems much better with WPF so far.

like image 32
Justin Avatar answered Nov 10 '22 11:11

Justin