# How to toggle between DX10, DX11, DX12 and via Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364>\
**Category:** Rendering\
**Tags:** dx11, vulkan, unreal-engine, dx12, Blueprint, question\
**Created:** [October 31, 2017, 12:27am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364 "2017-10-31T00:27:56Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [October 31, 2017, 12:27am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/1 "2017-10-31T00:27:56Z")

</div>

**Hey guys, any idea how to toggle between Dx11, DX12 and DX10, and maybe ? via Blueprint**

 ![218466-medium-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/b/2eb9cb591d944973be8477b6933fc133f7d34366.jpeg)

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 31, 2017, 1:29am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/2 "2017-10-31T01:29:07Z")

</div>

To understand how to do it you need to understand how renderer is structured. UE4 for sake of code compatibility has common rendering interface Rendering Hardware Interface (RHI) for graphical libraries, similar concept to OnlineSubsystems if you seen that. Each library has it’s own RHI implmentation, in Windows you have D3D11 D3D12, OpenGL and Vulcan.

Now switch between them on runtime is kind of imposssible as if you look in this code:

[https://github.com/EpicGames/UnrealEngine/blob/f794321ffcad597c6232bc706304c0c9b4e154b2/Engine/Source/Runtime/RHI/Private/Windows/WindowsDynamicRHI.cpp](https://github.com/EpicGames/UnrealEngine/blob/f794321ffcad597c6232bc706304c0c9b4e154b2/Engine/Source/Runtime/RHI/Private/Windows/WindowsDynamicRHI.cpp)

RHI is decided on start up and thats it. But as you can see in there you can override RHI used by adding command line options on start up of your game

-d3d12, -d3d11, -d3d10, -, -opengl, -opengl3, -opengl4

So easiest way is to just create BAT files to run specific option and make user run proper one. You could technically make game run another instance of it self and then exit, so new instance of the game runs in selected RHI, but problem here is how to save this option, you would need to make some external aplication that would manage that.

Either way your options are quite limited in blueprints because by defaut (or else you get some plugin that can do so) you can exec external applications via blueprints to even do this engine restart trick. So your best bet is BATs or maybe make a game launcher which will run game with proper option, you can use anything here. Maybe submit feature request in feedback forum to have even ability to include preferable RHI options in config, then you would just need to do console command, as it really seems like a missing option to have.

Also impotent thing whatever you do, in order for RHI code modules to be included in your package game and even have a option to run game on specific one you need to mark them as targeted RHIs. To do so go to Project Settings-\> Platfrom-\>Windows and there you will have a list of avable RHI which you want to be packaged with the game.

Also note that command line options work in editor too, you can start up editor in any RHI avable for Windows

---

<div class="post-metadata">

**Author:** ![TheFlow3k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheFlow3k](https://forums.unrealengine.com/u/TheFlow3k)\
**Post date:** [November 11, 2020, 6:53pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/3 "2020-11-11T18:53:16Z")

</div>

Just need a confirmation. Is this still the only options also in nearly 2021 or has something changed to be able to switch the RHI more easily ingame? If restart required would be ok, that’s not a problem. But the hack with the Batch file and/or needed 2nd app for configuration is not “ideal”. 🙂

---

<div class="post-metadata">

**Author:** ![ksimpson1986](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ksimpson1986](https://forums.unrealengine.com/u/ksimpson1986)\
**Post date:** [June 13, 2021, 11:34am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/4 "2021-06-13T11:34:06Z")

</div>

I’d like to know this too! 4 years later and almost every AAA game has this option. why isn’t this easier to control?

---

<div class="post-metadata">

**Author:** ![Rareden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rareden](https://forums.unrealengine.com/u/Rareden)\
**Post date:** [September 2, 2021, 10:59pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/5 "2021-09-02T22:59:08Z")

</div>

As of 4.26 you can do this with.

```
    FString DefaultGraphicsRHI;
    	if (GConfig->GetString(TEXT("/Script/WindowsTargetPlatform.WindowsTargetSettings"), TEXT("DefaultGraphicsRHI"), DefaultGraphicsRHI, GEngineIni))
    	{
    		FString NAME_DX11(TEXT("DefaultGraphicsRHI_DX11"));
    		FString NAME_DX12(TEXT("DefaultGraphicsRHI_DX12"));
    		GConfig->SetString(TEXT("/Script/WindowsTargetPlatform.WindowsTargetSettings"), TEXT("DefaultGraphicsRHI"), (useDx11? *NAME_DX11 : *NAME_DX12),GEngineIni);
    		GConfig->Flush(true, GEngineIni);

    	}

```

Exchange the “NAME\_DX11” for the RHI your wanting if not dx11 or 12.  
This obviously requires a restart to change

---

<div class="post-metadata">

**Author:** ![Nathanmiguel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nathanmiguel/32/1001711_2.png) [@Nathanmiguel](https://forums.unrealengine.com/u/Nathanmiguel)\
**Post date:** [February 8, 2022, 10:03pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/6 "2022-02-08T22:03:39Z")

</div>

I made a plugin based what you said. You can toggle between dx11, dx12 and . Also you can get current RHI.

> **[GitHub - Cesio137/UE4-GraphicsRHIManager](https://github.com/Cesio137/UE4-GraphicsRHIManager)**
>
> Contribute to Cesio137/UE4-GraphicsRHIManager development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Rareden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rareden](https://forums.unrealengine.com/u/Rareden)\
**Post date:** [March 6, 2022, 8:40am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/7 "2022-03-06T08:40:31Z")

</div>

Nice, Did notice in my post i had ‘true’ in ‘GConfig-\>Flush(true, GEngineIni);’  
This is a bit redundant in this situation as it just makes it read back the config after the write, can be false.

---

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [March 14, 2022, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/8 "2022-03-14T16:07:55Z")

</div>

Hello, thanks for answering… what is the DefaultGraphicsRHI FString actually used for? What value should that FString have?

---

<div class="post-metadata">

**Author:** ![Rareden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rareden](https://forums.unrealengine.com/u/Rareden)\
**Post date:** [March 14, 2022, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/11 "2022-03-14T22:47:15Z")

</div>

It does not change the DefaultEngine.Ini in the project, but changes the per user config in Saved\Config\Windows\Engine.ini under the same config section. You will need to restart your game for the change to happen.

DefaultGraphicsRHI specifies the rendering system to use, either RHI\_DX11 ,12 or vulcan

---

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [March 14, 2022, 11:00pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/12 "2022-03-14T23:00:51Z")

</div>

Ahhhhhh okkkk!!!..Thank you very much

---

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [March 15, 2022, 12:49am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/13 "2022-03-15T00:49:15Z")

</div>

Finally… I was able to do it, and it works… thank you very much to all who answered!.. you were very helpful 💓 💓 💓

---

<div class="post-metadata">

**Author:** ![Nathanmiguel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nathanmiguel/32/1001711_2.png) [@Nathanmiguel](https://forums.unrealengine.com/u/Nathanmiguel)\
**Post date:** [March 15, 2022, 6:41pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/14 "2022-03-15T18:41:58Z")

</div>

Kinda sorry for that, because I were reading more about it inside documentation and forget this args. Maybe more later I can update to optimize it

---

<div class="post-metadata">

**Author:** ![Nathanmiguel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nathanmiguel/32/1001711_2.png) [@Nathanmiguel](https://forums.unrealengine.com/u/Nathanmiguel)\
**Post date:** [March 15, 2022, 6:44pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/15 "2022-03-15T18:44:43Z")

</div>

When I change using the okugin, after restart UE4 it’s affect the engine too

---

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [March 15, 2022, 8:00pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/16 "2022-03-15T20:00:28Z")

</div>

Ready!.. @Nathanmiguel thank you very much

---

<div class="post-metadata">

**Author:** ![Nathanmiguel](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nathanmiguel/32/1001711_2.png) [@Nathanmiguel](https://forums.unrealengine.com/u/Nathanmiguel)\
**Post date:** [March 15, 2022, 9:47pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/17 "2022-03-15T21:47:10Z")

</div>

> **[ΣRRΩR 404](https://www.youtube.com/channel/UCiiLg8_6VShZSTY669CRGgQ)**
>
> Share your videos with friends, family, and the world

Right, you can see more in my channel.

---

<div class="post-metadata">

**Author:** ![DryreL](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dryrel/32/1042339_2.png) [@DryreL](https://forums.unrealengine.com/u/DryreL)\
**Post date:** [September 12, 2022, 11:29pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/18 "2022-09-12T23:29:48Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![Loux\_xavier](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/loux_xavier/32/1201519_2.png) [@Loux\_xavier](https://forums.unrealengine.com/u/Loux_xavier)\
**Post date:** [August 15, 2023, 2:39am UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/19 "2023-08-15T02:39:05Z")

</div>

Set DefaultGraphicsRHI work only in Editor. In shipping Game it just not create Engine.ini when I set it.  
Or I did something wrong?

---

<div class="post-metadata">

**Author:** ![ll-DOCtor-ll](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ll-doctor-ll/32/1124044_2.png) [@ll-DOCtor-ll](https://forums.unrealengine.com/u/ll-DOCtor-ll)\
**Post date:** [November 6, 2025, 4:01pm UTC](https://forums.unrealengine.com/t/how-to-toggle-between-dx10-dx11-dx12-and-via-blueprint/408364/20 "2025-11-06T16:01:49Z")

</div>

I don’t know if it’s too late, but in the new versions, you need to change the value to true in the base.ini file

> [@Issue with Engine.ini Not Generating in UE 5.4 and 5.5 for Changing RHI](https://forums.unrealengine.com/t/issue-with-engine-ini-not-generating-in-ue-5-4-and-5-5-for-changing-rhi/2077356/4):
>
> I was about to chime in on having the same issue but I decided to actually look at the change history for some of the config code in UE5’s GitHub and found this little gem: [https://github.com/EpicGames/UnrealEngine/commit/3ce7be40b1f094bd5f818288c198e5cea86000f3](https://github.com/EpicGames/UnrealEngine/commit/3ce7be40b1f094bd5f818288c198e5cea86000f3) Added system to only save config sections, to user Saved/Config files, that are opted in Currently disabled, allowing people to test locally by setting a bool in Base.ini (affects all hierarchical configs) And in Base.ini: (UE\_5.4\…
