DirectX 12 & WDDM 2.0: Reworking the Windows Graphics Stack

At a low-level technical perspective, it’s perhaps a bit of a generalization though none the less true that Windows at the kernel is relatively stable and feature complete these days. After the massive reworking for Windows Vista (6.0), Windows finally reached a point where the kernel and other low-level components of the OS supported the necessary features and sported the required stability to drive Windows for generations to come. As a result Microsoft never significantly tampered with the Windows kernel through Windows 7 (6.1) and Windows 8 (6.2/6.3) – making small feature additions where it made sense to – and even the kernel version number of Windows 10 (10.0) is largely arbitrary, with its roots clearly in 6.x.

Which is not to say that Microsoft hasn’t made low-level changes, only that those changes have been more deliberate and driven by specific needs. Case in point (and getting to the subject matter of this section) is DirectX 12 and its underlying driver structure, the Windows Display Driver Model. Even after the release of Windows Vista and its massive overhaul of the graphics stack, Microsoft has continued modifying the stack over successive generations as GPUs have become more flexible and more capable. After a series of smaller changes in Windows 7 and Windows 8, for Windows 10 Microsoft has gone back to make what are the most fundamental changes to the graphics stack since Windows Vista over 8 years ago.

DirectX 12

Microsoft’s changes ultimately reach out and touch several aspects of the OS, but the bulk of these changes are being put in place to support DirectX 12, the next generation of Microsoft’s game & multimedia API. We have covered DirectX 12 in a great amount of detail over the past year, so for deeper coverage we’ll reference the appropriate articles, but in summary here is what DirectX 12 brings to the table and why it is a big deal.

Excerpt from Microsoft Announces DirectX 12

Why are we seeing so much interest in low level graphics programming on the PC? The short answer is performance, and more specifically what can be gained from returning to it.

Something worth pointing out right away is that low level programming is not new or even all that uncommon. Most high performance console games are written in such a manner, thanks to the fact that consoles are fixed platforms and therefore easily allow this style of programming to be used. By working with hardware at such a low level programmers are able to tease out a great deal of performance of this hardware, which is why console games look and perform as well as they do given the consoles’ underpowered specifications relative to the PC hardware from which they’re derived.

However with PCs the same cannot be said. PCs, being a flexible platform, have long worked off of high level APIs such as Direct3D 11 and OpenGL. Through the powerful abstraction provided by these high level APIs, PCs have been able to support a wide variety of hardware and over a much longer span of time. With low level PC graphics programming having essentially died with DOS and vendor specific APIs, PCs have traded some performance for the convenience and flexibility that abstraction offers.

The nature of that performance tradeoff has shifted over the years though, requiring that it be reevaluated. As we’ve covered in great detail in our look at AMD’s Mantle, these tradeoffs were established at a time when CPUs and GPUs were growing in performance by leaps and bounds year after year. But in the last decade or so that has changed – CPUs are no longer rapidly increasing in performance, especially in the case of single-threaded performance. CPU clockspeeds have reached a point where higher clockspeeds are increasingly power-expensive, and the “low hanging fruit” for improving CPU IPC has long been exhausted. Meanwhile GPUs have roughly continued their incredible pace of growth, owing to the embarrassingly parallel nature of graphics rendering.

The result is that when looking at single threaded CPU performance, GPUs have greatly outstripped CPU performance growth. This in and of itself isn’t necessarily a problem, but it does present a problem when coupled with the high level APIs used for PC graphics. The bulk of the work these APIs do in preparing data for GPUs is single threaded by its very nature, causing the slowdown in CPU performance increases to create a bottleneck. As a result of this gap and its ever-increasing nature, the potential for bottlenecking has similarly increased; the price of abstraction is the CPU performance required to provide it.


3DMark 2011 CPU Time: Direct3D 11 vs. Direct3D 12

Low level programming in contrast is more resistant against this type of bottlenecking. There is still the need for a “master” thread and hence the possibility of bottlenecking on that master, but low level programming styles have no need for a CPU-intensive API and runtime to prepare data for GPUs. This makes it much easier to farm out work to multiple CPU cores, protecting against this bottlenecking. To use consoles as an example once again, this is why they are capable of so much with such a (relatively) weak CPU, as they’re better able to utilize their multiple CPU cores than a high level programmed PC can.

The end result of this situation is that it has become time to seriously reevaluate the place of low level graphics programming in the PC space. Game developers and GPU vendors alike want better performance. Meanwhile, though it’s a bit cynical, there’s a very real threat posed by the latest crop of consoles, putting PC gaming in a tight spot where it needs to adapt to keep pace with the consoles. PCs still hold a massive lead in single-threaded CPU performance, but given the limits we’ve discussed earlier, too much bottlenecking can lead to the PC being the slower platform despite the significant hardware advantage. A PC platform that can process fewer draw calls than a $400 game console is a poor outcome for the industry as a whole.

DirectX 12 as a result is the next-generation API that will be providing the basis for graphics going forward in Windows 10. Along with enabling critical improvements in CPU efficiency and scalability in multi-threading, the latest version of Windows’ major graphics API also introduces some other features that further the state of computer graphics. This includes a number of disparate but otherwise “neat” graphics tricks like asynchronous shading to better utilize GPU resources by processing certain classes of rendering tasks in parallel, and explicit multi-adapter functionality that allows the integrated GPUs found on most gaming platforms to be utilized in a meaningful way to contribute to the rendering process, rather than sitting idle as is now the case.

Meanwhile DirectX 12 also introduces some new graphics features that are being rolled out under the feature level 12_0 and 12_1 specifications. These include conservative rasterization for better calculation of pixel coverage, raster order views for better control over rendering order, and even freer resource binding to expand the amount of resources devs can use and how they organize them. And due to the nature of feature levels, most of these benefits are also being exposed in one form or another to the existing DirectX 11 API through DirectX 11.3, though certainly the bulk of their use will be under DirectX 12.

The first commercial DirectX 12 games are expected at the end of this year, with more to follow in 2016. Like so many other elements of Windows 10, ideally Microsoft would like to quickly push development towards this new API, using the free upgrade to quickly build up an established base. With DirectX 11 having taken years to really achieve traction due to the stubborn perseverance of Windows XP, there is a good deal of hope that with the free upgrade there will not be a repeat performance with respect to DirectX 12.

WDDM 2.0

Meanwhile below the API layer, quite a bit of work has gone into Windows at the driver level in order to enable the functionality of DirectX 12. While the full list of these changes are beyond the scope of a simple OS review, perhaps the most important point to take away is that due to these changes, Windows 10 is the biggest overhaul of the Windows graphics stack since WDDM 1.0 in Windows Vista. A big part of this is changes to how virtual memory works, which though largely abstracted from both the user and the developer, is crucial to the performance improvements unlocked by DirectX 12.

However because of these changes, there is a clear division in capabilities between Windows 10 and earlier version of Windows, and for that matter in the drivers for the two OSes. While Windows Vista/7/8 graphics drivers were distributed using a unified WDDM 1.x driver, Windows 10 graphics drivers are being distributed separately as their own WDDM 2.0 build. So much of WDDM 2.0 will be hidden from end users, but this will be one area where though minor, users will notice that something is different.

Memory optimizations and drivers aside, WDDM 2.0 also gave Microsoft the chance to fix some niggling issues in how the graphics stack worked. Quite a bit of effort has been put into multi-display cloning, for example – a feature that never worked quite as well as it should have – with the new WDDM 2.0 stack changing how scaling was being handled so that it’s more useful, more consistent, and works with multiple GPUs. These enhancements are also being deployed to Miracast support, and further improvements are being unlocked there such as support for dynamic resolutions and framerates.

WDDM 2.0 improvements are also an element in enabling Microsoft’s GameDVR feature, which sees game footage recording become an OS-level feature. And for better or worse, WDDM 2.0 also enables some new DRM functionality, which is being deployed as a condition of getting 4K (and above) protected content licensed for use on Windows.

Xbox on the PC Touch-Enabled Office Apps Arrive with Windows 10
Comments Locked

293 Comments

View All Comments

  • Brett Howse - Wednesday, August 26, 2015 - link

    Thanks for the catch on that one :)
  • abhaxus - Wednesday, August 26, 2015 - link

    Had a full screen takeover/scrolling ad when trying to read this article. Similar to the Tom's Hardware ads. I don't read that website anymore, and I will stop reading this one if it continues to happen.
  • Anne Druide - Thursday, August 27, 2015 - link

    Only 30 minutes in and it is obvious to me that Microsoft has dropped the ball it had picked up with Windows 8.1. (1) Microsoft's efforts at fixing Windows continue to be APITA (a pain you know where)! WHY did they have to completely obliterate the Charms? Why not just have left them along the right side of the new Action Center? I mean really? Did that NOT cross any of the brilliant minds at MS? WHY remove such a distinctive and unique feature of 8.1. Why not integrate it into 10? (2) Furthermore, just as 8.1 had swung maybe (maybe not) too far towards the tiles, 10 has swung WAY too far towards the desktop. Now, to get to the Metro Tiles Menu it takes TWO steps! Why in the world does pressing the offscreen Window button bring up the Start Menu INSTEAD of the Metro Menu? The Start Menu ALREADY has its own Window icon! And what's a TOTAL WASTE is that pressing on the offscreen Windows button while in Tablet mode and on the Metro Menu does ABSOLUTELY NOTHING! It does not even bring up the Start Menu which would have been a great idea! Duh! (3) Finally, I feel that MS has lied about BRINGING BACK THE START BUTTON! Clicking on the Windows button located where the Start button was in Windows 7 does NOT bring anything up even remotely close to what we had in Windows 7! When I press the Start button I DON'T wanna see tiles; I wanna see all the practical functionality of what came up in Windows 7 when I pressed Start! INSTEAD, I get a very confusing flotsam and jetsam mish-mash of everything under the sun instead of quick access to the Control Panel and Task Bar content and...OMG there's no longer any user control of Windows Update?!!! All in all, my first 30 minutes with Windows 10 has been, as you can tell, VERY disappointing! WHY is it SO HARD for MS to JUST GET IT RIGHT! This is NOT even close to what Windows 10 SHOULD be. This is a limping Windows 9 with the 10 thrown in JUST not to look light years behind Apple's OS X whose TEN has been a thorn in the side of MS for how many years now?!
  • mapesdhs - Thursday, August 27, 2015 - link

    Still looks to me like MS wants people to have a phone interface on a desktop, which is stupid. So many things once again look incredibly unprofessional, and the lack of configurability is just ridiculous. It makes the coding of this latest release look so amateurish. The smiley in the very first review image is typical. I could make a list of everything else which is stupid (eg. no Save As from right-button), but who has the time, and I'm sure the 22 pages of comments have covered them all already.

    I don't want to use an OS that looks like a phone interface. I'll keep using Win7 until MS offers something sensible.
  • straighttalk - Thursday, August 27, 2015 - link

    Totally useless review. No content, just a lot of opinion. Where's the beef? What are the issues? What problems are people who upgrade having?
  • SteelRing - Thursday, August 27, 2015 - link

    WiFi Sense is the antithesis of privacy and security, you should allow it if you are naive or an MS worshipper or both. Should you upgrade from Win8(.1)? For sure... Should you upgrade from Win7? I'd say if it aint broke dont fix it. I'm personally glad that Win10 finally allows me to buy laptop again, laptop that works and not just a toy. I want a keyboard and a mouse with my computer and Win10 finally lets me have it again. People who want to smear their screens with their fingers seem to be happy with Win10 too, none of my business though. If Win10 had not come out I'd be scavanging refurb laptops with Win7, thank goodness I don't have to.
  • Oxford Guy - Thursday, August 27, 2015 - link

    Microsoft is apparently doing its best to make sure it is broken. Here is a list I found of patches to avoid, due to things like added in "telemetry" (spying) or bug introduction:

    KB3075249, KB3080149, KB2505438, KB2670838, KB2952664, KB2976978 (8 only), KB3021917, KB3035583, KB3075249
  • Notmyusualid - Saturday, August 29, 2015 - link

    Thanks, but cleared out a couple of those already.
  • Zak - Thursday, August 27, 2015 - link

    "for most people, they will make the trade-off of less privacy if it means an improved experience. The textbook example here is advertising, where in order to deliver relevant ads to the user (or rather not serve them useless ads) the ad service must be able to learn something about the user and their preferences" -- Are you out of your mind??? Trade my privacy for relevant ads? You ought to be on drugs or MS is paying you to post this drivel. Nobody likes to be blasted with ads, relevant or not. If they system really wants to learn something it is this: NOBODY LIKES ADS.
  • jameskatt - Friday, August 28, 2015 - link

    The absolutely WORSE thing about Windows 10 is now much it is tracking you - tracking the websites you read, the apps you use, tracking how much time you spend on a web page, etc. And you cannot turn this tracking off. It is totally creepy that Windows includes so much spying.

    Some parents may love this in that they get a monthly report from Microsoft of every webpage and app their children use.

    But for the vast majority of users and parents, this is simply unacceptable.

    Someone has to give us a privacy utility to block Microsoft from tracking us so heavily.

Log in

Don't have an account? Sign up now