Direct2d
Direct2D is a hardware-accelerated, immediate-mode, 2-D graphics API that provides high performance and high-quality rendering for 2-D geometry, bitmaps, and text
Gdi
Graphics Device Interface (GDI) is a device-independent, pure software graphics API under the Windows operating system for drawing graphic primitives and text
Thing faster draw
Example |
---|
"I ve read that direct2d is much faster than gdi so i figured i would give it a shot for dealing with constantly updated variables" from question Using Direct2D drawing with real-time data from a timer "The thing is that gdi is still faster than direct2d if i draw to a bitmap and after it s done i bitblt the result back to the form it paints at 35ms and with the same graphics quality" from question Is TDirect2DCanvas slow or am I doing something wrong? |
Slower
Example |
---|
"But my direct2d code is much slower than my gdi code" from question GDI versus Direct2D "A direct2d is slower than gdi" from question Is TDirect2DCanvas slow or am I doing something wrong? |
Others
Example |
---|
Threads in direct2d is more granular than in gdi and gdi+ so that the from question IIS & service-based generation of web images - GDI, GDI+ or Direct2D? |
Disable antialiasing and the performance of direct2d will be on par or faster than gdi from question Is TDirect2DCanvas slow or am I doing something wrong? |
Gdi functions have limited transparency support so you might want to use a different technology like direct2d which has better integration with the gpu from question Performance efficient way of setting pixels in GDI |
A i tried gdi-compatible direct2d using id2d1dcrendertarget+binddc but it is much slower than pure gdi from question Fast (HW-accelerated) drawing to foreign window (probably using Direct3D) |