x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

dx12 command

Hi,

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

thanks in advance,

Product Version: UE 4.10
Tags:
more ▼

asked Dec 13 '15 at 10:09 PM in Rendering

avatar image

quintendc
185 44 59 82

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hi quintendc,

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: https://docs.unrealengine.com/latest/INT/Programming/Basics/CommandLineArguments/index.html

Thank you!

Tim

more ▼

answered Dec 14 '15 at 03:08 PM

avatar image

Tim Hobson ♦♦ STAFF
48.7k 888 103 880

avatar image quintendc Dec 14 '15 at 05:09 PM

Do i need the dx12 SDK

avatar image Tim Hobson ♦♦ STAFF Dec 14 '15 at 09:07 PM

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.

avatar image quintendc Dec 14 '15 at 09:15 PM

Hi,

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

thanks in advance

avatar image Tim Hobson ♦♦ STAFF Dec 15 '15 at 05:15 PM

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:

alt text

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.

avatar image quintendc Dec 15 '15 at 07:43 PM

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

avatar image Tim Hobson ♦♦ STAFF Dec 15 '15 at 09:46 PM

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.

avatar image quintendc Dec 15 '15 at 09:52 PM

this was the way i opened it and it was running perfect https://gyazo.com/37108c06c2dd3270726526a1f01ad41f

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

avatar image Tim Hobson ♦♦ STAFF Dec 15 '15 at 10:37 PM

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.

alt text

dx12output.png (118.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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):

alt text

more ▼

answered May 19 '19 at 05:47 AM

avatar image

tomofnz
1.2k 48 47 89

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question