对于 C# 中的重型图形应用程序,双缓冲或缓冲图形哪个更有效?

发布于 2024-09-06 15:49:45 字数 217 浏览 2 评论 0原文

你好,我有一个繁重的图形应用程序,每次我都必须在 2-10 秒内绘制图形,这取决于通过 UDP 向我的应用程序发送数据的源应用程序;

我有一些静态图形,它们没有变化,有些是半动态的,这意味着它们有时会更新,通常保持不变,所有其他图形都是动态的,大约有 8000 个动态对象,

我正在 C# 中工作并学习这两个标题中给出的技术在这种情况下会更有效,

可以提前提供所需的帮助;

hello i have a heavy graphics application where i have to draw the graphics in 2-10 seconds every time this time varies depending upon the source application which is sending data to my application via UDP;

i have some static graphics there is no change in them some are semi dynamic that means some time they are updated and normally remains unchanged and all other graphics are dynamic there are about 8000 approx objects that are dynamic

i am working in c# and learn the two techniques given in title which one will be more efficient in this case help required

thanx in advance;

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

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

发布评论

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

评论(1

等你爱我 2024-09-13 15:49:45

你的物体有多大?

人们可能无法预测这里什么更有效,这取决于一切,对象的类型、对象的大小、将数据转换为可见图形的复杂性以及最重要的是互联网连接的速度将限制您的应用程序。

最后,您可能想尝试两者并衡量它们的性能。即使如此,您可能仍希望将其实现为一项设置,以便用户可以在两者之间切换。

How large are your objects?

One probably can't predict what's more efficient here, it depends on everything, type of objects, size of objects, complexity of converting data to visible graphics and most of all the speed of your internet connection will limit your application.

In the end you probably want to try both and measure their performance. Even then you might want to implement it as a setting so the user can flip between the two.

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