# how to Switch RHI Module in runtime

**URL:** <https://forums.unrealengine.com/t/how-to-switch-rhi-module-in-runtime/1770907>\
**Category:** Platform & Builds\
**Tags:** Graphics, rhi, unreal-engine, question\
**Created:** [March 25, 2024, 3:29am UTC](https://forums.unrealengine.com/t/how-to-switch-rhi-module-in-runtime/1770907 "2024-03-25T03:29:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fedy3234](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fedy3234](https://forums.unrealengine.com/u/fedy3234)\
**Post date:** [March 25, 2024, 3:29am UTC](https://forums.unrealengine.com/t/how-to-switch-rhi-module-in-runtime/1770907/1 "2024-03-25T03:29:21Z")

</div>

how to switch RHI module in runtime ( release )?

i try that Flush the config file like this

[/Script/WindowsTargetPlatform.WindowsTargetSettings]  
DefaultGraphicsRHI=DefaultGraphicsRHI\_DX12

by

GConfig-\>SetString(TEXT(“/Script/WindowsTargetPlatform.WindowsTargetSettings”), TEXT(“DefaultGraphicsRHI”), %ModuleName%, GEngineIni);  
GConfig-\>Flush(true, GEngineIni);

and Reload Game, Check RHI Module from HardwareInfo

FHardwareInfo::GetHardwareInfo(NAME\_RHI);

it successfully in development env, but in Release, it doesnt work correctly

how can i do this???
