为什么一个.NET 4.0的WPF应用程序有更好的用户界面的性能在VMware客户比主机?用户界面、应用程序、性能、主机

2023-09-04 06:15:05 作者:←△←i →△→i

在测试我们的C#/。在VMware 7.1.2工作站游客的一个新的Win 7 x64企业配置了2 GB RAM NET4.0 / WPF应用程序,启动时间和用户界面的性能远远优于使用相同的应用程序主机(没有任何虚拟机上运行)。

When testing our C#/.NET4.0/WPF app on a fresh Win 7 Enterprise x64 in a VMWare 7.1.2 Workstation Guest configured with 2 GB RAM, startup time and UI performance was far superior to using the same app in the host (without any VMs running).

主机拥有8GB内存,但还算加载。还进行的主机上的测试在来宾与主机上更多的负载,加上虚拟机的开销,仍具有相似的结果,客人是更快和具有较平滑的UI(我知道,一个主观量度)。

The host has 8GB RAM, but is fairly loaded. The test on the host was also performed on the guest with more load on the host, plus the overhead of the VM, still with similar results, the guest being faster and having a smoother UI (I know, a subjective measure).

下面是一些可能的原因:

Here are some possible reasons:

WPF渲染是优越的VMWare的显示系统相比,(可能)越野车的AMD上的物理驱动器。请注意,客人配置了加速3D图形设置启用。显卡是ATI的/ AMD的FirePro,我不得不从最新的驱动程序回滚,因为它pretty的很多谋杀WPF的性能,无论是在我们的应用程序和VS2010。

WPF rendering is superior with the VMWare display system, compared to the (possibly) buggy AMD driver on the physical. Note that the guest is configured with the "Accelerate 3D Graphics" setting enabled. Graphics card is an ATI/AMD Firepro and I had to rollback from the latest driver as it pretty much murdered WPF performance, both on our app and VS2010.

注册,并具有相对干净的虚拟机上的WPF / .NET PERF一个特别大的效果的其他克鲁夫特。

Registry and other cruft having a particularly large effect on WPF / .NET perf versus the clean VM.

任何人都可以给我为什么是这样的情况下,任何其他的想法,因为要求客户用干净的操作系统安装是特殊使用本产品在VMware来宾。

Can anyone give me any other ideas on why this is the case, since asking customers to use the product in a VMWare guest using a clean OS install would be peculiar.

感谢

推荐答案

您可能有一个正在阻碍WPF的PERF一些奇怪的注册表设置。 WPF使用渲染(参考3层: http://msdn.microsoft。 COM / EN-US /库/ ms742196.aspx ),并根据具体的设置,你可能会得到基于这样原始虚拟机设置了不同的PERF的。当克隆VM,你把它所有的注册表设置。这里是的人来看看

You may have some odd registry settings that are hindering the perf of WPF. WPF uses 3 "tiers" of rendering (ref: http://msdn.microsoft.com/en-us/library/ms742196.aspx) and depending on specific settings, you may be getting different perf based on where the original VM was set up. When you clone a VM, you take with it all Registry settings. Here are the ones to check out