使用 GPU 密集型应用程序时的 WPF/Silverlight 性能

发布于 2024-09-05 21:12:41 字数 237 浏览 0 评论 0原文

我可能会在这个问题中混合苹果和橙子,因为我在上述领域是菜鸟,所以请尝试理解我的意思。

我读到 WPF(以及 Silverlight,作为它的扩展)使用 GPU 加速在屏幕上渲染自身。

如果是这样,当我已经运行 GPU 密集型应用程序(例如,窗口模式下的游戏),然后运行需要一些 GPU 时间/功率的 WPF/Silverlight 应用程序时,会发生什么情况?谁获得更大的优先权?他们都开始“结巴”了吗?

谢谢!

I might be mixing apples and oranges in this question since I'm noob in mentioned areas, so please try to understand what I mean.

I read that WPF (and Silverlight, as an extension to it) uses GPU acceleration to render itself on the screen.

If so, what happens when I have GPU-intensive application already running (say, game in windowed mode), and then run WPF/Silverlight application, which needs some GPU time/power? Who gets greater priority? Do they both start "stuttering"?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

栩栩如生 2024-09-12 21:12:41

我认为可以肯定地说,当 CPU 密集型任务运行时,您也会遇到类似的问题……它会耗尽其他任务的处理时间。所以,是的,您可能会看到性能下降,但这一切都取决于所涉及的内容:)。

一般来说,密集型游戏通常被编写为使用大部分/所有计算机资源,并期望这是用户可能会做的唯一事情。当窗口不在前台时,其他更好的应用程序将降低处理需求(即较低的 FPS)。 Windows 本身实际上会给前台窗口更高的优先级(除非另外配置),但你永远不知道其他程序对自己的线程优先级做了什么。

I think it would be safe to say that you'd have similar issues as a CPU intensive task running...it will starve other tasks of processing time. So yes, you may see lowered performance all around, but it all depends on whatever is involved :).

Generally speaking, intensive games are usually written to use most/all the computers resources, expecting that this is the only thing a user will probably be doing. Other, nicer applications will lower their need for processing (ie lower FPS) when the window is not in the foreground. Windows itself actually will give more priority to the foreground window (unless configured otherwise), but you never know what other programs do to their own thread priorities.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文