Win32: Is there a replacement for GDI32.dll that uses hardware acceleration?

Has anyone out there created a version of GDI32.dll that takes advantage of the hardware acceleration available on a machine? gdiplus.dll ?

Starting with Windows Vista, GDI is no longer hardware accelerated. (GDI + has never been hardware accelerated). Without the Microsoft GDI (and GDI +) fix, to be able to work well on the computer: native applications (C ++ MFC, Delphi, etc.) And managed WinForms applications will continue to work for a short time.

While I could use Direct2D for business applications, I cannot control the fact that the development environment is still creating controls with decades of library support code that assumes GDI.


Application Compatibility: Graphical User Interface (GDI) :

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

Windows and video memory

In XP, GDI is accelerated by the GPU depending on how the OS is configured or the device driver (see Capture versus Punter for details ). In Vista, GDI is not accelerated by the GPU

Comparison of Direct2D and GDI

As a result, in Windows Vista GDI, the DDI Display Driver was changed to the Microsoft-only supplied driver, Canonical Display Driver (CDD). GDI is transferred to the bitmap memory system. Dirty regions were used to update the texture of the video memory that the window manager uses to create the desktop.

+7
user-interface winapi gdi + gdi direct2d
source share
3 answers

Vista seems to be a special case in the history of GDI performance. Both articles below show that the future of GDI looks bright again.

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

GDI is hardware acceleration in Windows XP and accelerates in Windows 7 when the desktop window manager is running and the WDDM 1.1 driver is used. Direct2D - hardware acceleration of almost any WDDM driver and regardless of whether DWM is used. In Vista, GDI will always be displayed on the processor.

http://blogs.msdn.com/b/e7/archive/2009/04/25/engineering-windows-7-for-graphics-performance.aspx

Based on a real statistics application, ... we worked with our IHV graphics partners to provide support in their drivers to speed up the most commonly used GDI operations.

+2
source share

Well, yes, GDI is an API for rendering graphics. This places very low demands on the video driver. Everyone got that right a long time ago. It took some time, I got a clear memory of the ATI Mach graphics card, which did not give me any problems. This has stopped me from buying ATI products for quite some time.

Everyone got DirectX less right, a long time ago. He takes advantage of the WPF rendering model, he relies entirely on DirectX to do his job. Milcore is the name of the pad. You will not receive it until you acquire the WPF programming model.

+1
source share

What do you mean by hardware acceleration? I mean that GDI does nothing but a raster bunch, but these were hardware accelerations. And, given that Vista and Windows 7 are not much slower with desktop applications, there are still.

GDI still receives video drivers for all of the heavy lifting, so if GDI isn’t hardware accelerated, then its driver drivers will not, not GDI.

+1
source share

All Articles