WPF 应用程序性能 - 在 Intel 上很好,在 AMD 上非常慢 [英] WPF Application performance - Fine on Intel, Extremely Slow on AMD

查看:50
本文介绍了WPF 应用程序性能 - 在 Intel 上很好,在 AMD 上非常慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个 WPF 应用程序 (.NET 4.5),它在我们尝试过的大多数环境中都运行良好.然而,在一些基于 AMD 处理器的平台上,性能是一场噩梦,应用程序几乎无法使用.除了处理器类型 Intel 与 AMD 之外,我们还在 Azure 和 Amazon VM 上推出了具有相同规格的平台.我们有一台内部运行 AMD 的笔记本电脑,这也很糟糕.

We have a WPF application (.NET 4.5) that is running perfectly fine in most environments we have tried it on. However, on some AMD processor based platforms the performance is a nightmare and the application is virtually unusable. We have put platforms out on Azure and Amazon VM's with identical specs besides processor type Intel vs AMD. We have a laptop internally running AMD that is horrible as well.

我们确实有一台使用 ATI 显卡的 AMD 处理器机器.那里的表现很正常.我们内部的笔记本电脑使用板载视频,而虚拟机使用虚拟机本身的 VGA(两者的性能都很差).

We do have a machine with an AMD processor that uses an ATI video card. The performance is normal there. The laptop we have in house uses the onboard video and the VM uses VGA from the VM itself (both have poor performance).

我查看了 PriorityBoostEnabled 和 RenderMode,它们没有帮助,并在网上搜索类似的问题,但没有找到太多.

I have looked at PriorityBoostEnabled and RenderMode, which hasn't helped and searched the web looking for similar issues, but haven't found much out there.

serverfault 上有一个类似的帖子,但没有引起太多关注.这是一个标准的 .NET 应用程序,我不知道它是如何成为编码问题的.我之前从未在任何代码中添加任何内容来针对不同于基于 Intel 的 CPU 的 AMD 进程.

There is a similar thread on serverfault that hasn't gotten much attention. This is a standard .NET app and I don't see how it can be a coding issue. I have never put anything in any code before to target an AMD process different than an Intel based CPU.

这是服务器故障线程:https://serverfault.com/问题/617779/wpf-application-issues-on-amd-cpu-vs-intel

推荐答案

这不是一个非常具体的答案,但几乎可以肯定地归结为 WPF 是否检测到它可以在硬件中呈现.如果 WPF 掉到软件渲染,有很多 UI 元素绝对会破坏性能(即阴影).

This isn't a very concrete answer, but it almost assuredly comes down to whether or not WPF is detecting that it can render in hardware or not. If WPF drops to software rendering, there are many UI elements that will absolutely destroy performance(ie. drop shadows).

这里有关于渲染管道的更多信息.

Here is more information about the rendering pipeline.

在虚拟机中,您可能无法访问任何硬件渲染,这会导致性能问题.在您正在查看的 AMD 硬件上,板载图形系统可能不支持 Direct X 7.0 或更高版本,这会导致软件渲染.

In a VM, you may not have access to ANY hardware rendering, which would account for the performance issue. On the AMD hardware you are looking at, the on-board graphics system may not support Direct X 7.0 or higher, which would drop to software rendering.

希望这会有所帮助.

这篇关于WPF 应用程序性能 - 在 Intel 上很好,在 AMD 上非常慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆