GDI/GDI+, Move Over: Microsoft Introduces Direct2D

For most of the last decade, improving 3D performance has been the primary goal of operating system, application (read gaming) developers, and hardware developers. However, when you're at work, trying hard to make the money you need to buy a new HDTV and über-gaming PC, you're probably working in a 2D world that's being managed by the creaky GDI/GDI+ APIs which were first developed back to the 1990s.
This week, Microsoft introduced a replacement for GDI/GDI+ called Direct2D. Microsoft's Thomas Olsen, a Dev Lead in the Windows Desktop Graphics organization, uses his new blog to bring us up to speed on why we need the new Direct2D API and how it will make PCs work better.
Olson points out that GDI/GDI+ use software rendering for tasks that modern GPUs can now perform, and that GDI/GDI+ is a completely separate subsystem from Direct3D. Direct2D, as the name implies, is designed to run on top of Direct3D, enabling support of modern GPUs while retaining compatibility with GDI/GDI+. Direct2D will be part of Windows 7, but it might also be deployed to Windws Vista and even Windows XP.
Direct2D provides better performance and better ClearType font rendering than with GDI/GDI+, and provides the ability to run in software mode if Direct2D hardware support is not available. Even in software mode, Direct2D is designed to provide "substantially better rendering performance than GDI+ with similar visual quality," according to the PDC 2008 white paper "Introducing Direct2D."
You can download a copy of this white paper, but note that it uses Office 2007's DocX format. If you need a DocX reader, you can download Microsoft's reader (which also requires the Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats, available here), or download OpenOffice 3.0. Be sure to check out Tom's Blog for more Direct2D information as it becomes available.
If you use 2D graphics as part of your work or leisure time, what do you think about Direct2D? Hit Comments and tell us your thoughts.
Illustration courtesy of Tom's Blog.
![]()
Eva Grainy
July 19, 2011 at 1:51am
I have always admired those passionate people who work with 3D app generating software. From the objective point of view of a person hardly having any particular know how on this matter, I myself can even notice the great evolution to 3D graphics. You have an awesome explicit way of describing the features of this kind of software. A friend of mine once explain to me the evolution of spyware programs and I find it outstanding how these system develop through years.
![]()
Keith E. Whisman
November 01, 2008 at 8:44pm
Weve already got 2d graphics it's called Intel Extreme Graphics.
![]()
brirun
November 01, 2008 at 3:31am
I sometimes wonder why I have a quad-core machine with 6GB of RAM and wait for Word to load. It doesn't seem much better than with Windows95. I hope this can make that a little better (and other little things like that.)
![]()
LatiosXT
November 01, 2008 at 11:05am
Load times are mostly depenedent on your hard drive, not the CPU or RAM (although RAM does play a minor role). The faster your hard drive, the faster things will load. Hence why Windows XP still continues to load at roughly the same speed despite booting it on a Athlon XP 2600+, Athlon 64 X2 3800+, and a Core 2 Duo E8400.
![]()
jvc08
October 31, 2008 at 8:39pm
i think its about time. i been thinking about this for a long time. they make 3d faster, but what about 2d text and graphics, in other words, what about everything else!?? internet, cleartype fonts, windows desktop, they all need to work faster, have you ever drag a desktop window moving in circles? it's damn slow. it's about time!
![]()
Marcus_Soperus
October 31, 2008 at 12:35pm
While the screenshot I grabbed for the header shows a game-like demo, the full blog post also shows off demos of CD album labels and charting. Windows Media Center, Windows Media Player, and plenty of other graphically-rich 2D environments will also benefit from faster 2D performance. This could really help speed up Windows 7, and I hope that Redmond can figure out a way to backport it to Vista and XP.
![]()
zodi
October 31, 2008 at 12:01pm
15 years after the fact they figured out they can use GPU acceleration for 2D.
Well I guess its a step forward. More CPU cycles for some of the older games maybe.
![]()
OmegaThree
January 26, 2009 at 8:02am
@zodi:
Existing GDI apps will not benefit from D2D/DW. GDI is and will always be rendered in software. Interop between GDI and D2D/DW will be possible for future applications.














