CPU Scaling

Diving into our look at DirectX 12, let’s start with what is going to be the most critical component for a benchmark like Star Swarm, the CPU scaling.

Because Star Swarm is designed to exploit the threading inefficiencies of DirectX 11, the biggest gains from switching to DirectX 12 on Star Swarm come from removing the CPU bottleneck. Under DirectX 11 the bulk of Star Swarm’s batch submission work happens under a single thread, and as a result the benchmark is effectively bottlenecked by single-threaded performance, unable to scale out with multiple CPU cores. This is one of the issues DirectX 12 sets out to resolve, with the low-level API allowing Oxide to more directly control how work is submitted, and as such better balance it over multiple CPU cores.

Star Swarm CPU Scaling - Extreme Quality - GeForce GTX 980

Star Swarm CPU Scaling - Extreme Quality - Radeon R9 290X

Starting with a look at CPU scaling on our fastest cards, what we find is that besides the absurd performance difference between DirectX 11 and DirectX 12, performance scales roughly as we’d expect among our CPU configurations. Star Swarm's DirectX 11 path, being single-threaded bound, scales very slightly with clockspeed and core count increases. The DirectX 12 path on the other hand scales up moderately well from 2 to 4 cores, but doesn’t scale up beyond that. This is due to the fact that at these settings, even pushing over 100K draw calls, both GPUs are solidly GPU limited. Anything more than 4 cores goes to waste as we’re no longer CPU-bound. Which means that we don’t even need a highly threaded processor to take advantage of DirectX 12’s strengths in this scenario, as even a 4 core processor provides plenty of kick.

Meanwhile this setup also highlights the fact that under DirectX 11, there is a massive difference in performance between AMD and NVIDIA. In both cases we are completely CPU bound, with AMD’s drivers only able to deliver 1/3rd the performance of NVIDIA’s. Given that this is the original Mantle benchmark I’m not sure we should read into the DirectX 11 situation too much since AMD has little incentive to optimize for this game, but there is clearly a massive difference in CPU efficiency under DirectX 11 in this case.

Star Swarm D3D12 CPU Scaling - Extreme Quality

Having effectively ruled out the need for 6 core CPUs for Star Swarm, let’s take a look at a breakdown across all of our cards for performance with 2 and 4 cores. What we find is that Star Swarm and DirectX 12 are so efficient that only our most powerful card, the GTX 980, finds itself CPU-bound with just 2 cores. For the AMD cards and other NVIDIA cards we can get GPU bound with the equivalent of an Intel Core i3 processor, showcasing just how effective DirectX 12’s improved batch submission process can be. In fact it’s so efficient that Oxide is running both batch submission and a complete AI simulation over just 2 cores.

Star Swarm CPU Batch Submission Time (4 Cores)

Speaking of batch submission, if we look at Star Swarm’s statistics we can find out just what’s going on with batch submission. The results are nothing short of incredible, particularly in the case of AMD. Batch submission time is down from dozens of milliseconds or more to just 3-5ms for our fastest cards, an improvement just overof a whole order of magnitude. For all practical purposes the need to spend CPU time to submit batches has been eliminated entirely, with upwards of 120K draw calls being submitted in a handful of milliseconds. It is this optimization that is at the core of Star Swarm’s DirectX 12 performance improvements, and going forward it could potentially benefit many other games as well.


Another metric we can look at is actual CPU usage as reported by the OS, as shown above. In this case CPU usage more or less perfectly matches our earlier expectations: with DirectX 11 both the GTX 980 and R9 290X show very uneven usage with 1-2 cores doing the bulk of the work, whereas with DirectX 12 CPU usage is spread out evenly over all 4 CPU cores.

At the risk of speaking to the point that it’s redundant, what we’re seeing here is exactly why Mantle, DirectX 12, OpenGL Next, and other low-level APIs have been created. With single-threaded performance struggling to increase while GPUs continue to improve by leaps and bounds with each generation, something must be done to allow games to better spread out their rendering & submission workloads over multiple cores. The solution to that problem is to eliminate the abstraction and let the developers do it themselves through APIs like DirectX 12.

Star Swarm & The Test GPU Scaling
Comments Locked

245 Comments

View All Comments

  • Jeffro421 - Thursday, February 12, 2015 - link

    Something is horribly wrong with your results. I just ran this benchmark, on extreme, with a 270X 4GB and I got 39.61 FPS on DX11. You say a 290X only got 8.3 fps on DX11?

    http://i.imgur.com/JzX0UAa.png
  • Ryan Smith - Saturday, February 14, 2015 - link

    You ran the Follow scenario. Our tests use the RTS scenario.

    Follow is a much lighter workload and far from reliable due to the camera swinging around.
  • 0VERL0RD - Friday, February 13, 2015 - link

    Been meaning to ask why both cards show vastly different total memory in Directx diag. Don't recall Article indicating how much memory each card had. Assuming they're equal. Is it normal for Nvidia to not report correct memory or is something else going on?
  • Ryan Smith - Saturday, February 14, 2015 - link

    The total memory reported is physical + virtual. As far as I can tell AMD is currently allocating 4GB of virtual memory, whereas NVIDIA is allocating 16GB of virtual memory.
  • trisct - Friday, February 13, 2015 - link

    MS needs a lot more Windows installs to make the Store take off, but first they need more quality apps and a competitive development stack. The same app on IOS or Android is almost always noticeably smoother with an improved UI (often extra widget behaviors that the Windows tablet versions cannot match). Part of this is maturity of the software, but Microsoft has yet to reach feature parity with the competing development environments, so its also harder for devs to create those smooth apps in the first place.
  • NightAntilli - Friday, February 13, 2015 - link

    We know Intel has great single core performance. So the lack of benefits for more than 4 cores is not unsurprising. The most interesting aspect would be to test the CPUs with weak single core performance, like the AMD FX series. Using the FX series rather than (only) the Intel CPUs would be more telling. 4 cores would not be enough to shift the bottleneck to the GPU with the FX CPUs. This would give a much better representation of scaling beyond 4 cores. Right now we don't know if the spreading of the tasks across multiple threads is limited to 4 cores, or if it scales equally well to 6 threads or 8 threads also.

    This is a great article, but I can't help feeling that we would've gotten more out of it if at least one AMD CPU was included. Either an FX-6xxx or FX-8xxx.
  • Ryan Smith - Saturday, February 14, 2015 - link

    Ask and ye shall receive: http://www.anandtech.com/show/8968/star-swarm-dire...
  • NightAntilli - Tuesday, February 17, 2015 - link

    Thanks a lot :) The improvements are great.
  • 0ldman79 - Monday, February 16, 2015 - link

    One benefit for MS to have (almost) everyone on a single OS is just how many man hours are spent patching the older OS? If they can set up the market to where they can drop support for Vista, 7 and 8 earlier than anticipated they will save themselves a tremendous amount of money.
  • Blackpariah - Tuesday, February 17, 2015 - link

    I'm just hoping the already outdated console hardware in PS4/Xbone won't hold things back too much for the pc folks. On a side note... I'm in a very specific scenario where my new gtx 970, with DX11, is getting 30-35 fps @ 1080P in battlefield 4 because the cpu is still an old Phenom 2 x4... while with my older R9 280, on Mantle, the framerate would stay above 50's at all times at almost identical graphic detail & same resolution.

Log in

Don't have an account? Sign up now