Last year at GDC Microsoft announced DirectX 12. During yesterday’s Windows 10 media briefing, Phil Spencer of Microsoft mentioned that Unity is going to add support for DirectX 12. Here are some more details we can share with you today!

去年在GDC上,微软宣布了DirectX12。在昨天的Windows 10媒体发布会上,微软的Phil Spencer提到Unity将添加对DirectX 12的支持。以下是我们今天可以与您分享的更多详细信息!

Direct3D 12 is a new graphics API with the promise of reducing driver overhead and allowing better use of multi-core systems. In those aspects it is comparable to AMD’s Mantle and Apple’s Metal.

Direct3D 12是一种新的图形API,有望减少驱动程序开销并允许更好地使用多核系统。 在这些方面,它可以媲美AMD的Mantle和Apple的Metal。

The architecture of Direct3D 12 differs greatly from that of Direct3D 11 both in the way memory is accessed and GPU commands are issued. Rather than having a single context on which to set states and issue draw calls, we can now build command lists on multiple threads and retain them over multiple frames if necessary, saving precious CPU cycles and eliminating the dreaded my-render-thread-does-most-of-the-work problem. This has the potential to both reduce total frame time and increase battery life.

Direct3D 12的体系结构与Direct3D 11的体系结构在内存访问方式和发出GPU命令方面都大不相同。 现在,我们不再需要在单个上下文上设置状态和发出绘制调用,而是可以在多个线程上构建命令列表,并在必要时将它们保留在多个帧中,从而节省了宝贵的CPU周期并消除了令人恐惧的my-render-thread-does-最忙的问题。 这有可能减少总帧时间并增加电池寿命。

3DMark have ported one of their benchmarks to DirectX 12 and reported a 50% improvement in CPU utilization. See this blog post for more details.

3DMark已将其基准之一移植到DirectX 12,并报告CPU利用率提高了50%。 有关更多详细信息,请参见此博客文章

保持DirectX 12的领先地位

Tested on GIGABYTE BRIX Pro (Intel Core i7-4770R + Iris Pro Graphics 5200)

在GIGABYTE BRIX Pro(Intel Core i7-4770R + Iris Pro Graphics 5200)上进行了测试

Intel have also demonstrated what can be done on a Surface Pro 3 with Intel HD4400 graphics. This blog post has all the details.

英特尔还展示了可以在具有Intel HD4400显卡的Surface Pro 3上完成的工作。 此博客文章包含所有详细信息。

保持DirectX 12的领先地位

Close up of another CPU/GPU power graph taken during a locked framerate Intel Asteroids demo showing over 50% CPU power usage reduction

关闭在锁定帧速率Intel Asteroids演示期间拍摄的另一个CPU / GPU功耗图,显示CPU功耗降低了50%以上

Direct3D 12 is expected to run on all Microsoft devices: mobiles, laptops, desktops and Xbox One, all of which Unity already supports. It is only logical for us to adopt the new universal API. However a significant amount of work is required to reap all the benefits this architectural switch can provide and that is why we have started early. Over the past several months we have worked closely with Microsoft to bring Unity to DirectX 12 and our initial port is now passing over 95% of our graphics tests.

Direct3D 12有望在所有Microsoft设备上运行:移动设备,笔记本电脑,台式机和Xbox One,Unity已支持所有这些设备。 我们采用新的通用API是合乎逻辑的。 但是,要想获得此架构转换所能提供的所有好处,还需要进行大量工作,这就是我们早日开始的原因。 在过去的几个月中,我们与Microsoft紧密合作,将Unity引入DirectX 12,现在我们的初始端口已经通过了95%的图形测试。

Passing all the tests is only the first step. Once we are happy with the implementation feature-wise we shall move on to the new features of Direct3D 12 and invest heavily in optimization. There is ongoing work to allow our renderer to better use multiple cores which will apply directly to Direct3D 12 and hopefully provide the promised performance improvement. Right now, it’s too early to discuss performance due to the alpha state of Windows 10 and DirectX 12 drivers, however we are happy with the numbers we’re seeing.

通过所有测试只是第一步。 一旦我们对实现功能感到满意,我们将继续使用Direct3D 12的新功能并在优化上投入大量资金。 目前正在进行的工作允许我们的渲染器更好地使用多个内核,这些内核将直接应用于Direct3D 12,并有望提供预期的性能改进。 目前,由于Windows 10和DirectX 12驱动程序的alpha状态,现在讨论性能还为时过早,但是我们对看到的数字感到满意。

Both Nvidia and Intel have given us ample support, and we now have code running on both Nvidia and Intel hardware. All of our demos are behaving well on Direct3D 12. That makes us very confident that your games will too.

Nvidia和Intel都给了我们足够的支持,并且现在我们在Nvidia和Intel硬件上都可以运行代码。 我们所有的演示都在Direct3D 12上表现良好。这使我们对您的游戏也充满信心。

Currently our plan is to release DirectX 12 support early in the Unity 5 cycle (well in time for the release of Windows 10), and to target standalone builds and Windows Store Apps first. Then we’ll follow up with Windows Phone and Xbox One support, aligning with the plans Microsoft has for their platforms.

目前,我们的计划是在Unity 5周期的早期(及时发布Windows 10)发布DirectX 12支持,并首先针对独立版本和Windows Store Apps。 然后,我们将继续支持Windows Phone和Xbox One,以与Microsoft针对其平台的计划保持一致。

Keep checking our blog for more DirectX 12 news. We should have more announcements in the next few months. In the meantime you can find more general information on the subject on the Microsoft DirectX 12 blog.

请继续查看我们的博客以获取更多DirectX 12新闻。 在接下来的几个月中,我们将发布更多公告。 同时,您可以在Microsoft DirectX 12博客上找到有关该主题的更多常规信息。

翻译自: https://blogs.unity3d.com/2015/01/22/staying-ahead-with-directx-12/

相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2022-01-23
  • 2021-08-08
  • 2022-12-23
  • 2021-09-27
  • 2021-05-14
  • 2021-05-09
猜你喜欢
  • 2021-11-09
  • 2021-09-21
  • 2021-08-24
  • 2021-12-11
  • 2021-08-18
  • 2021-04-20
相关资源
相似解决方案