简体   繁体   English

WPF 3D性能问题是由于显卡内存不足所致?

[英]WPF 3D perfomance issue due to low graphics card memory?

My project uses 3D flip animations to show the forms. 我的项目使用3D翻转动画显示表单。 My problem is that the transitions are very slow in an XP machine. 我的问题是XP机器中的过渡非常缓慢。 I checked the graphics card memory and its only 64MB. 我检查了显卡内存及其仅有的64MB。 Does upgrading the graphics card make any difference in the perfomance? 升级显卡是否会对性能产生任何影响?

It may make some difference, but there are other alternatives to manage UI performance if your app is intended for wider distribution. 这可能会有所不同,但是如果您的应用程序旨在进行更广泛的分发,则可以使用其他方法来管理UI性能。

Often, software rendering will outperform hardware on lower-end machines. 通常,软件渲染将优于低端计算机上的硬件。 This can be enabled (for ALL WPF apps) using a registry setting detailed here . 可以使用此处详细介绍的注册表设置来启用(对于所有WPF应用程序)。

Additionally, WPF exposes a property that broadly categorises a machine's performance into three "tiers." 此外,WPF公开了一个属性,该属性将机器的性能大致分为三个“层次”。 Information on those can be found here . 关于这些的信息可以在这里找到。 You can expose this value as a property (say, on your App object) and use it in a Xaml trigger to selectively disable animations or high-end effects (shadows/blurs/etc) that might cause issues on slower machines. 您可以将此值公开为一个属性(例如,在您的App对象上),并在Xaml触发器中使用它来有选择地禁用动画或高端效果(阴影/模糊/等),这些动画或高端效果可能会在速度较慢的计算机上引起问题。

On XP you may find that both of these are of benefit. 在XP上,您可能会发现这两者都是有益的。

It is not just upgrading the graphics card that could benefit your application. 升级显卡不仅可以使您的应用受益。

WPF doesn't run optimal on Windows XP . WPF在Windows XP上运行效果欠佳

You need to check several things: For rendering Tier 2 DirectX version: must be greater than or equal to 9.0. 您需要检查以下几件事:渲染Tier 2 DirectX版本:必须大于或等于9.0。 Video RAM: must be greater than or equal to 120MB. 视频RAM:必须大于或等于120MB。 Pixel shader : version level must greater than or equal to 2.0. 像素着色器:版本级别必须大于或等于2.0。 You should take look on Graphics Rendering Tiers http://msdn.microsoft.com/en-us/library/ms742196.aspx 您应该看一下图形渲染层http://msdn.microsoft.com/zh-cn/library/ms742196.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM