DirectX 12 is gonna make a difference alright

Published by

teaser

Check out the tweet below from Develoiper Brad Wardell (Stardock games), he seems happy with the performance advancements of DirectX 12 alright.



On his blog he also has this intersting post:

DirectX 12 and Mantle: Can they deliver movie quality?

Bottom line: DirectX 11 stuffs all the commands to the GPU through a single pipeline. DirectX 12 makes it parallel. In theory, you could see an Ntimes boost (N = number of cores). 

The article got a lot of coverage with some people arguing that such massive gains due to a platform change were impossible.

The software matters: DirectX 9 vs. DirectX 12 on same hardware

Hardware is only part of the picture and in fact, these days, a relatively small part of the picture.  The biggest monster machine I have available to me (Core I7 5960X with a Radeon R9 290X) is still going to top out at around 8000 batches on DirectX 9 for the typical developer.  On Mantle or DirectX 12, however, that same hardware can do >100,000 batches.

Terminology: Number of batches. 

This is how much information can be put on the screen in a given frame.  The more batches, the more sophisticated the scene. The next big debate will be how many batches does a scene need before the typical viewer will think it’s “real life”. they’re looking at.

You want >30FPs (or better yet over 60FPS) so then it’s just a matter of how many batches can you shove into a scene and keep it at that speed?

Batches directly tied to on screen sophistication

Look around your room. How many sources of light are there? I have 3 monitors and about a half dozen light bulbs in this room. Those lights are bouncing off drink glasses, my desk, the monitor, etc.

Now, how many light sources does a typical game today have? 4? I saw someone on a forum laughing because I didn’t know what I was talking about because they saw an example of 8 light sources. Eight. 

A real life battle scene would likely have hundreds or thousands of different light sources involved.  In a game today, only 4 (or EIGHT) of those lights are going to be real. You may not notice this but your brain will.  And that’s just lighting. Plus, real world temporal anti-aliasing, much greater material sophistication and all the other things that are pre-requisites to have something that looks real or at least not blatantly plasticy. And as Oxide’s Dan Baker points out, we haven’t really touched on lens effects.

Batch count survey

Best guesses below.  Would be great to get exact numbers from some enterprising game developer (hint hint). Smile

Platform

Max Batch Count on a Radeon HD 7790

DirectX 9 4,000
DirectX 11 11,000
DirectX 12 / Mantle 50,000

This presumes 30fps at 720p.  I haven’t tried out DirectX 9 at 1920x1080 with that level card and am too lazy try to now.

When is it Star Wars prequel level?

I got quoted as saying that by the end of the current console generation that you’ll have games that are able to do LOTR-like battle scenes.  I stand by that. I’m putting it here, in writing, on this blog so people can point back to it in a few years and see if I was right (or tragically wrong).

But we can have a useful debate on it now: Is 50,000 batches in a given frame enough to produce a scene of sufficient fidelity that the typical viewer will find it realistic?  We have had this debate internally a lot over the past year.  Our lead graphics dev says you’d really need more like 300,000 batches.  My position is that at 50,000 you reach well into the “good enough” range provided that the engine is doing a lot of optimizing (LOD, good use of built in hardware features, etc.).

image

I’m pretty sure this can be done with 50k batches at 24fps. They don’t even have real light. Seriously, go back and watch the prequels, most of their explosions might as well be cartoons.

image

This is very doable at 50k batches.

image

With smart LOD, yea, I think this can be done with 50k batches per frame to a level as to make the typical viewer not tell the difference. (this scene is admittedly vastly more sophisticated than that, look closely at the light reflections on the people then point and laugh at the Gungans above. It’s okay. They’re used to it.).

DirectX 12 is gonna make a difference alright

Share this content
Twitter Facebook Reddit WhatsApp Email Print