日期:2014-05-18  浏览次数:21497 次

wpf为什么在vmware里那么慢?

一个简单的wpf程序,就一个窗体,上面放了几个button。在电脑里,一瞬间就能出来。但是放入虚拟机里,那速度才叫一个慢啊,快一分钟才出来,简单的动画效果都实现不了,而且还显示不全。

vmware是支持directx的啊。而且在虚拟机里运行好多比较大的游戏都能运行。为什么运行wpf的速度会那么慢?

vmware 的版本是6.5。显卡驱动是 vmware svga II。虚拟机里装的是win7 home版。

初这wpf,请问下,这个是怎么回事?在客户的机器上,如果配置比较低,或者显卡比较老的话,是否也会出现这种情况,谢谢。

------解决方案--------------------
vmware本身就慢,占用内存会很大
建议换virtualbox试试,我这里一切正常,t61
------解决方案--------------------
有没有安装虚拟机显示卡驱动?
------解决方案--------------------
没碰到过。

google到下面的讨论,试一试标成红色的部分。

… when hardware acceleration is switched on. Yeah, that’s weird, isn’t it? I’ve seen it several times on different machines though, including that one time when WPF was just killing my machine and I hunted around for the reason for two hours before remembering…

Part of the reason for this post. So, if WPF is running oddly slowly in your VM, try switching off the hardware acceleration setting. In VMWare Fusion on the Mac, you need to click on the Display icon in the settings window to find the Accelerate 3D Graphics setting. I know that other VMWare versions have the setting as well, but I’m not sure where exactly it is.

Every now and then I give this another try, because it seems so weird and I think perhaps they’re going to fix it one day. But as of today, this behavior is what it is on both my MacBook and my Mac Pro.
------------------------
WPF is based on DirectX 3D and DirectX 3D isn't fully supported in Workstation, I guess the same is valid for Fusion. I also think (guess) that VMWare is working on the issue and they should fix it someday.

来自:
http://www.sturmnet.org/blog/2009/08/31/wpf-in-vmware-is-horrible

------解决方案--------------------
探讨
嗯? 你们主机上也正常吗? 感觉第一次总卡一下

------解决方案--------------------
探讨

引用:
嗯? 你们主机上也正常吗? 感觉第一次总卡一下


第一次慢是正常的,wpf程序启动前会启动一个字体缓存的服务,这个服务是延迟启动的,不随系统自动启动,而是在你第一次运行wpf服务时启动,所以一般第一次会感觉比较慢