对于 C# 中的重型图形应用程序,双缓冲或缓冲图形哪个更有效?
你好,我有一个繁重的图形应用程序,每次我都必须在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的物体有多大?
人们可能无法预测这里什么更有效,这取决于一切,对象的类型、对象的大小、将数据转换为可见图形的复杂性以及最重要的是互联网连接的速度将限制您的应用程序。
最后,您可能想尝试两者并衡量它们的性能。即使如此,您可能仍希望将其实现为一项设置,以便用户可以在两者之间切换。
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.