Page 1 of 1

Directx 12 support?

Posted: Mon Jan 13, 2020 10:00 am
by duc.nami
Hi all
Does anyone know if CRYENGINE 5.4 fully supports Directx 12?
My application crashes frequently when I turn on dx12

Re: Directx 12 support?

Posted: Mon Jan 13, 2020 1:25 pm
by Argoon
As far has I know it supports DX12, if is full or not I really don't know, it also supports Vulkan (in Beta). Btw does the engine also crash for you when using Vulkan? It shouldn't matter for dx12 but just in case try it.

Also does the crash writes a log file or gives you a error message? If so and you have a log file attach it to this thread.

Re: Directx 12 support?

Posted: Mon Jan 13, 2020 1:56 pm
by just_saiyan
I know if you want it to run in the editor there are a few things you need to first, and I'm going assume it's the same for the Game Launcher.
I usually add these CVars to my system.cfg file.
r_Driver = "DX12"
r_ShaderTarget = "D3D12"
r_ShadersAllowCompilation = 1
r_ShadersRemoteCompiler = 1
r_ShaderCompilerServer = 127.0.0.1
Then you need to run the Remote Shader Compiler located in - D:\CRYENGINE Launcher\Crytek\CRYENGINE_5.6\Tools\RemoteShaderCompiler

Re: Directx 12 support?

Posted: Tue Jan 14, 2020 1:38 am
by lavizh
First of all you are running an old engine build. Try 5.6.5, DX12 should work fine for the game launcher, with the upcoming 5.7 we will have full DX12 and Vulkan support in both the Editor and Game Launcher. The current implementation in 5.6 is experimental / beta and it's missing several features.

Re: Directx 12 support?

Posted: Tue Jan 14, 2020 3:46 am
by duc.nami
@Argoon - I haven't tried Vulkan yet

@just_saiyan - I just tried your way but my application still crashes. I only run Game Launcher. Thanks anyway

@lavizh - I'll try it on the new version. Thank you

Re: Directx 12 support?

Posted: Tue Jan 14, 2020 2:00 pm
by just_saiyan
Just to make sure. Are you running the Remote Shader Compiler before you load the Sandbox or the game launcher. Being on the latest version probably would help for the fixes & anything else.

**Update** Just done a quick test with 5.6.5 & the GameSDK. For DX12 I didn't need to run the Remote Shader Compiler for the Game Launcher or Sandbox, so it seems they have improved that part of the DX12 pipeline.

Re: Directx 12 support?

Posted: Tue Jan 14, 2020 3:45 pm
by Alekseiv
To start working with either Dx12 or Vulkan in 5.6.5, all you need to do is set the API in config.
r_driver = dx12 or vk is enough.