wpf为什么在vmware里那么慢?

uvvvw 2012-05-08 09:10:34

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

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

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

初这wpf,请问下,这个是怎么回事?在客户的机器上,如果配置比较低,或者显卡比较老的话,是否也会出现这种情况,谢谢。
...全文
204 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
startstartsvip 2012-05-09
  • 打赏
  • 举报
回复
嗯? 你们主机上也正常吗? 感觉第一次总卡一下
uvvvw 2012-05-09
  • 打赏
  • 举报
回复
在本机上运行,一点也不慢,即使第一次启动也是一瞬间的事。就是在虚拟机里,不管第几次启动,以及启动后都非常的慢。而且按钮显示也错位。动画根本就放不出来。

startstartsvip 2012-05-09
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 的回复:]

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


第一次慢是正常的,wpf程序启动前会启动一个字体缓存的服务,这个服务是延迟启动的,不随系统自动启动,而是在你第一次运行wpf服务时启动,所以一般第一次会感觉比较慢
[/Quote]
o 难怪
沝林 2012-05-09
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
嗯? 你们主机上也正常吗? 感觉第一次总卡一下
[/Quote]

第一次慢是正常的,wpf程序启动前会启动一个字体缓存的服务,这个服务是延迟启动的,不随系统自动启动,而是在你第一次运行wpf服务时启动,所以一般第一次会感觉比较慢
宝_爸 2012-05-09
  • 打赏
  • 举报
回复
没碰到过。

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
threenewbee 2012-05-09
  • 打赏
  • 举报
回复
有没有安装虚拟机显示卡驱动?
nonocast 2012-05-08
  • 打赏
  • 举报
回复
vmware本身就慢,占用内存会很大
建议换virtualbox试试,我这里一切正常,t61

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧