Turning On DX12 Causes Crash
My program runs fine using DX11. When I swap the Graphics API to DX12 I experience extreme screen tearing and eventually it crashes completely. and for the screen tearing I do have v-sync enabled but it doesn't seem to be working. The error message shown in the console says "d3d12: Profiler is enabled, but stable power state is not. GPU timing errors are expected." I assumed I should enable stable power but after a quick Google search I couldn't find out how. I'm not sure if thats why it's crashing. Doesn't anyone have any possible solutions? (aside from just using DX11)
Answer by Summit_Peak · Mar 12, 2018 at 04:54 PM
Here is how to enable stable power:
"C:\Program Files\Unity\Editor\Unity.exe" -force-d3d12-stablepowerstate
This does not work for Unity 2107.1.2f1(64bit). Unity reverts back to DX11. To get DX12, use:
"C:\Program Files\Unity\Editor\Unity.exe" -force-d3d12
This gives the profiler warning, but I haven't noticed any problems. Perhaps timing errors show up in the unity profiler.
Your answer
Follow this Question
Related Questions
Random black lines when camera moves 0 Answers
Can sb help? Artifact with terrain or another objects 0 Answers
Crazy graphics problems involving RenderForwardOpaque. PLEASE HELP!!! 1 Answer
How to add GLES2 or GLES3 to the "Graphics APIs" list in Unity? 2 Answers
How do you use Blend Shapes when rendering a mesh via Graphics.DrawMesh()? 0 Answers