简体   繁体   English

图形性能改进/ GDI替代?

[英]Graphics performance improvement / GDI alternative?

can anyone suggest any alternative to GDI? 有人可以建议GDI以外的其他选择吗? The reason is that I have data that updates rapidly and GDI doesn't support that kind of render velocity... I've tried SharpDX & SlimDX, but none seems to work properly (can't force them to draw on form without errors) 原因是我有快速更新的数据,GDI不支持这种渲染速度...我尝试了SharpDX和SlimDX,但似乎都无法正常工作(不能强迫他们在没有错误的情况下绘制表格) )

Update 1: I'm developing in C# 更新1:我正在用C#开发

Update 2: Data is binded to Visual Studio 2010 default Charts control. 更新2:数据绑定到Visual Studio 2010默认图表控件。 A lot of code has been written to add functionality & lags were discovered after large amount of data incoming. 已经编写了许多代码以添加功能,并且在输入大量数据后发现了滞后。 Reason is that I need compatibility with .NET Framework 4 & Windows XP and higher. 原因是我需要与.NET Framework 4和Windows XP及更高版本兼容。 After spending a lot of time investigating, I've discovered that SlimDX and SharpDX have strict requirements to videocard, drivers, and problems running on Windows XP. 在花费大量时间进行调查之后,我发现SlimDX和SharpDX对视频卡,驱动程序以及Windows XP上运行的问题有严格的要求。

GDI is software only rendering, as well as GDI+ which handles alpha channel for transparency rendering. GDI是仅软件渲染,以及GDI +都可以处理Alpha通道进行透明渲染。 These two libraries are really limited and slow compared to a GPU based one. 与基于GPU的库相比,这两个库确实是有限且缓慢的。

My suggestion is that you should invest the time to implement a SharpDX Direct2D based drawing engine. 我的建议是您应该花一些时间来实现基于SharpDX Direct2D的绘图引擎。 I never heard about the issue you talked about with forms, I use SharpDX with Winforms and WPF and everything's going great! 我从未听说过您谈论过表单的问题,而是将SharpDX与Winforms和WPF一起使用,并且一切都很好!

If speed is the most important criteria, then you'll have to invest time into a GPU based rendering engine, GDI is way to slow and not adapted to real-time rendering. 如果速度是最重要的标准,那么您将不得不花时间在基于GPU的渲染引擎上,GDI是一种减慢速度且不适合实时渲染的方法。

老实说,我感到奇怪的是,GDI在这种情况下还不够,但是还有很多选择:您可以选择DirectDraw以获得完整功能,可以选择GDI +获得更高级的操作和选项,甚至可以选择外部软件,例如GTK +。

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

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