# dx12 command

**URL:** <https://forums.unrealengine.com/t/dx12-command/341375>\
**Category:** Rendering\
**Tags:** UE4-10, UE4-9, unreal-engine, dx12, question\
**Created:** [December 13, 2015, 10:09pm UTC](https://forums.unrealengine.com/t/dx12-command/341375 "2015-12-13T22:09:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f0e22f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f0e22f9](https://forums.unrealengine.com/u/anonymous_user_6f0e22f9)\
**Post date:** [December 13, 2015, 10:09pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/1 "2015-12-13T22:09:08Z")

</div>

Hi,

im using ue4.10 and when type in command line -DX12 or DX12 it says comand not recognized.

thanks in advance,

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [December 14, 2015, 3:08pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/2 "2015-12-14T15:08:52Z")

</div>

Hi ,

This cannot be used as a console command in the editor. You will need to add it as a command line argument. You can see more about this on this page in documentation: [Command-Line Arguments in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Programming/Basics/CommandLineArguments/index.html)

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f0e22f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f0e22f9](https://forums.unrealengine.com/u/anonymous_user_6f0e22f9)\
**Post date:** [December 14, 2015, 5:09pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/3 "2015-12-14T17:09:45Z")

</div>

Do i need the dx12 SDK

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [December 14, 2015, 9:07pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/4 "2015-12-14T21:07:24Z")

</div>

I’ve not used DX12 yet personally, but all you should need is Windows 10 installed, and a Source or Binary (Launcher) build of the engine. You should not need the SDK to use it in the editor that I’m aware of.

DX12 support in 4.10 is still considered experimental so I would expect some rough edges until it’s moved out of experimental in one of the upcoming major release versions of the engine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f0e22f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f0e22f9](https://forums.unrealengine.com/u/anonymous_user_6f0e22f9)\
**Post date:** [December 14, 2015, 9:15pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/5 "2015-12-14T21:15:47Z")

</div>

Hi,

how and where do i need to add this command argument?  
and how will the line looks like?

thanks in advance

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [December 15, 2015, 5:15pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/6 "2015-12-15T17:15:11Z")

</div>

Right-click on the UE4Editor.exe located in the Engine installation folder location, then select Properties.

You can add the command line in the line with a space between it and the command.

Something like this:

 ![70729-commandlineargument.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/f/e5f4650ebf3dfb0b9e6b22b6f63790963d072cfe.png)

It shouldn’t be anything more complex than this that I’m aware of. I can’t test or verify this or any issues with the DX12 stuff on my machine since I don’t have Win 10 available on my machine currently. I just want to re-iterate that it is experimental, so if you get any crashes please post these in the Answerhub Bug Reports section with any steps to reproduce the issue so we can try and get those fixed up.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f0e22f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f0e22f9](https://forums.unrealengine.com/u/anonymous_user_6f0e22f9)\
**Post date:** [December 15, 2015, 7:43pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/7 "2015-12-15T19:43:44Z")

</div>

i did it with cmd because it will not boot with changing the properties.  
but how do we know it is running in directx12?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [December 15, 2015, 9:46pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/8 "2015-12-15T21:46:38Z")

</div>

Try making a shortcut of your UE4Editor.exe rather than adding to the .exe file directly. In my setup I have all file extensions visible and editable, but this is not a default setting in Windows.

Then open the shortcut using the method before and add -DX12 after the quotes with a single space between them. Then you only need to double-click on the shortcut to open the editor. If you’re GPU is compatible with this it will open without issue, if not you will get a warning message that your GPU is not compatible and to remove the command line argument.

I just tested this on our test Win10 machine. At the moment I’m not aware of a way to know from in the editor other than the project opening without a warning. I’m checking with out QA team to see if there is another way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f0e22f9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f0e22f9](https://forums.unrealengine.com/u/anonymous_user_6f0e22f9)\
**Post date:** [December 15, 2015, 9:52pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/9 "2015-12-15T21:52:41Z")

</div>

this was the way i opened it and it was running perfect

but how can i be sure that it is running directx 12?

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [December 15, 2015, 10:37pm UTC](https://forums.unrealengine.com/t/dx12-command/341375/10 "2015-12-15T22:37:16Z")

</div>

Just spoke with one of the QA team members. Hers’ how you can know if you’re running DX12.

- You can open the outputlog, scroll to the beginning, and it will tell you there (screenshot attached)
- When launching in -game it should tell you at the top left of the window (D3D12 or DX12)

This is a log from a DX11 machine, but this should be listed as DX12 when chosen.

 ![70773-dx12output.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/2/8/128fd288f3b8835bf155e47b38ea20bd15549500.png)

---

<div class="post-metadata">

**Author:** ![tomofnz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomofnz](https://forums.unrealengine.com/u/tomofnz)\
**Post date:** [May 19, 2019, 5:47am UTC](https://forums.unrealengine.com/t/dx12-command/341375/11 "2019-05-19T05:47:40Z")

</div>

You can roll your mouse over your project title in the top-right of the editor and it displays ‘Graphics RHI : Direct##’

You can also set in Project Preferences the RHI default to Directx12

For me, I’m getting a wonky flickering when my project is in Directx12 (this covers at an epileptic rate the entire editor and any extra slate windows that are also open):

 ![277299-dx12-ue4-glitchy.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/2/c32f804f171441f7ecd344f1c51cb8a1464eed8b.png)
