gpt4 book ai didi

winapi - Win32 : Is there a replacement GDI32. 使用硬件加速的dll?

转载 作者:行者123 更新时间:2023-12-02 00:59:59 27 4
gpt4 key购买 nike

是否有人创建了一个利用计算机上可用的硬件加速的 GDI32.dll 版本? gdiplus.dll

从 Windows Vista 开始,GDI 不再是硬件加速的。 (GDI+ 从来都不是硬件加速的)。如果 Microsoft 不修复 GDI(和 GDI+)以便能够在计算机上良好运行: native 应用程序(C++ MFC、Delphi 等)和托管 WinForms 应用程序将永远运行不佳。

虽然我可以将 Direct2D 用于业务应用程序,但我无法控制这样一个事实:开发环境仍然使用数十年的库支持代码创建控件,并假定存在 GDI。

<小时/>

Application Compatibility: Graphical Device Interface (GDI) :

GDI primitives such as LineTo and Rectangle are now rendered in software rather than video hardware, which greatly simplify the display drivers.

Windows And Video Memory

In XP GDI is GPU accelerated to various degrees depending on how the OS is configured or the device driver (for details see Hooking Versus Punting). In Vista, GDI is not GPU accelerated

Comparing Direct2D and GDI

As a result, in Windows Vista, the GDI DDI display driver was changed to be only implemented by a Microsoft supplied driver, the Canonical Display Driver (CDD). GDI rendered to a system memory bitmap. Dirty regions were used to update the video memory texture which the window manager uses to composite the desktop.

最佳答案

看来Vista是GDI性能史上的一个特例。下面的两篇文章都表明 GDI 的 future 再次光明。

http://msdn.microsoft.com/en-us/library/ff729480%28VS.85%29.aspx

GDI is hardware accelerated on WindowsXP, and accelerated on Windows 7 whenthe Desktop Window Manager is runningand a WDDM 1.1 driver is in use.Direct2D is hardware accelerated onalmost any WDDM driver and regardlessof whether DWM is in use. On Vista,GDI will always render on the CPU.

Link

Based on real-world applicationstatistics, ... we worked with ourgraphics IHV partners to providesupport in their drivers to acceleratethe most commonly used GDI operations.

关于winapi - Win32 : Is there a replacement GDI32. 使用硬件加速的dll?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2640558/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com