简体   繁体   English

WPF中的性能

[英]Performance in WPF

My job is to develop a small 2D game in WPF. 我的工作是在WPF中开发一个小型2D游戏。 I saw a lot of cool games which are written in Silverlight. 我看过许多用Silverlight编写的很酷的游戏。 My quesion is now: Has WPF the same requirements for this purpose? 我现在的问题是:WPF对此目的有同样的要求吗? Here (http://www.microsoft.com/showcase/en/us/details/b83db72d-bc0e-4423-88fc-99d7a77d60e5) I've found a really cool game in silverlight. 在这里(http://www.microsoft.com/showcase/en/us/details/b83db72d-bc0e-4423-88fc-99d7a77d60e5)我发现了一个很酷的Silverlight游戏。 I want to develop nearly the same in WPF. 我想在WPF中开发几乎相同。 Are there any performance problems or something like that? 有任何性能问题或类似的问题吗?

Thanks in advance! 提前致谢!

Silverlight is a (non-strict) subset of WPF. Silverlight是WPF的(非严格)子集。 Tools like Blend work fine (and are often heavily used) in WPF. 像Blend这样的工具在WPF中运行良好(并且经常被大量使用)。 There are interesting performance issues that crop up occasionally, but that's true of any major UI framework. 偶尔会出现一些有趣的性能问题,但对于任何主要的UI框架都是如此。 WPF has the benefit of being accelerated by DirectX, so it tends to perform better than WinForms for many tasks. WPF具有被DirectX加速的好处,因此对于许多任务而言,它往往比WinForms表现更好。

Basically: have at, and ask questions later as you run into problems. 基本上:当你遇到问题时,请稍后再提问。

Also consider XNA. 还要考虑XNA。

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

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