In 1993 Windows was where you did your spreadsheets, and DOS was where you played games. Almost nobody argued with that split. Windows 3.1 sat on millions of desks, but if you wanted to play Doom or Day of the Tentacle, you quit to the prompt, juggled your memory settings and launched from there.

Microsoft hated that. As long as games lived in DOS, the most demanding software people bought for their home PCs ran outside Microsoft's newest platform, and that was a real problem for a company planning to put Windows 95 on every machine. Fixing it took a small graphics library called WinG and one very public disaster involving Disney. After that, it took a lot of persuading.

Why Developers Stayed in DOS

Under DOS, a game owned the machine. Flip the VGA card into mode 13h and you had 320 by 200 pixels in 256 colours, mapped straight into memory at segment A000. Write a byte and a pixel changed. Nothing stood between your code and the hardware.

Windows 3.1 put the GDI in the way. Every pixel went through Windows' graphics device interface, which was built for drawing fonts and buttons rather than redrawing a whole screen thirty times a second. Cooperative multitasking meant any badly behaved app could steal time from your game, too. Developers looked at the frame rates and went straight back to DOS. It was messier, with IRQ conflicts and the endless fight over 640KB of conventional memory. But it was fast.

WinG: A Back Door to the Screen

Microsoft's first answer arrived in September 1994. WinG, pronounced "Win Gee", was a small library whose development was led by Chris Hecker, a Microsoft programmer with a games background. The trick was simple. WinG let a game draw into an off screen bitmap in memory, using the same direct pixel writes it would use under DOS, then copied the finished frame to the display with a heavily tuned blit. It ran on Windows 3.1 and was ready for the coming Windows 95.

It worked, mostly. Performance got close enough to DOS that some developers started paying attention. The catch was that WinG still depended on whatever display driver the PC shipped with, and in 1994 those drivers were a lottery.

Article Image

The Lion King Problem

That lottery made the news at Christmas 1994. Disney's The Lion King Animated Storybook used WinG, and it went out on Compaq Presario PCs that holiday season. The video drivers on many of those machines hadn't been properly tested with WinG, and the game crashed on a lot of them. Families unwrapped a new PC and a Disney game for the kids, then spent Christmas morning looking at error messages. Disney's support lines were swamped.

For Microsoft it was a painful lesson. A games library that relied on hardware makers getting their drivers right was always going to fail in exactly the places customers would notice.

The Manhattan Project

Inside Microsoft, a small group of evangelists had already decided WinG wasn't enough. Alex St. John, Craig Eisler and Eric Engstrom pushed for a set of low level APIs that would give games direct, sanctioned access to the hardware under Windows 95, with Microsoft setting the rules for how hardware makers wrote their drivers. Internally the effort was nicknamed the Manhattan Project, which tells you how seriously they took it.

The Windows Games SDK shipped in September 1995, a few weeks after Windows 95 launched. Its core pieces were DirectDraw for graphics and DirectSound for audio. The press started calling the whole bundle DirectX, and the name stuck.

Code alone wasn't going to win anyone over. The team threw a deliberately over the top Halloween event for developers on the Microsoft campus, called Judgment Day, and a promotional video from the same push put Bill Gates inside Doom, shotgun in hand. Most accounts place both in 1995, though the exact dates shift depending on who's telling the story. Subtle it wasn't. That was the point.

Doom Comes to Windows

The real proof was always going to be Doom. Microsoft put a team on porting it to Windows 95 using DirectX, led by Gabe Newell. Doom95 arrived in 1996 and ran about as well as the DOS original, which was exactly what Microsoft needed. If the most famous DOS game in the world could run properly under Windows, developers were running out of excuses.

Newell left Microsoft that same year to cofound Valve. Not a bad next move.

Doom 95 on Win 95
Doom 95 on Win 95

Direct3D and the OpenGL Row

DirectX 2.0 added Direct3D in 1996, built on technology Microsoft had bought from London based RenderMorphics the year before. Early Direct3D was clumsy to program, and John Carmack said so publicly in December 1996, arguing that OpenGL was the cleaner API. id went its own way with GLQuake, and 3dfx kept Glide alive for years.

Microsoft kept grinding anyway. Each release got better, and by DirectX 7 and 8 it had caught up with the competition. It helped that every Windows PC had DirectX installed, while consumer graphics cards often shipped without a full OpenGL driver.

From WinG to DirectX: Key Dates

  • Sep 1994: WinG released for Windows 3.1, giving games fast off screen drawing.
  • Dec 1994: The Lion King Animated Storybook crashes on Compaq Presario PCs over Christmas.
  • Feb 1995: Microsoft buys RenderMorphics, the source of Direct3D.
  • Aug 1995: Windows 95 launches.
  • Sep 1995: The Windows Games SDK ships, soon known as DirectX.
  • 1996: DirectX 2.0 adds Direct3D, and Doom95 proves DirectX can run a big DOS hit.
  • Dec 1996: John Carmack publicly backs OpenGL over Direct3D.

The Library Nobody Remembers

By 1997 new releases were increasingly Windows 95 only, and by the end of the decade DOS gaming was effectively finished. WinG barely gets a mention in most histories. It deserves more credit than that, because it was the first time Microsoft admitted Windows had a games problem.

Everything that followed grew out of that admission. Even the Xbox, whose name started life as a shortened form of DirectX Box.