# HW raytracing support enable drop performance even if it's disabled in level

**URL:** <https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957>\
**Category:** Rendering\
**Tags:** unreal-engine, editor, Rendering, Lighting, question\
**Created:** [September 4, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957 "2024-09-04T12:25:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [September 4, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/1 "2024-09-04T12:25:57Z")

</div>

BLACK MYTH WUKONG, SILENT HILL 2… more and more UE 5 games have the option to disable HW raytracing and the performance are improved, so the solution is there somewhere…  
so why in my shipped game using the console command disable all the hw raytracing but doesn’t improve the performance?

I’ve got 2 identical build games: one with hardware raytracing support ON

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/2/3122b6335c949cbc0a0bf4ebf06f089a2baffa01.png)  
and one without  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/e/9bef75095e7a6885a40c072a5b8f8fd3966dce04.png)

the HW raytracing run at 20FPS :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/6/c969d4cdaa3d3d0cf8fa7b6f03e0b89fdaf284e9.jpeg)

the SW raytracing run at 45/50FPS:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/c/98c807e6668d78726fe5cc62c094add971f2b621.jpeg)

the HW raytracing build have an option to disable the hardware raytracing in game by the command line:  
r.RayTracing.ForceAllRayTracingEffects 0  
r.Lumen.HardwareRayTracing 0

so in theory if I disable the HW raytracing in game should have a similar performance of the non HW supported version, unfortunately it’s not like that  
the command lines works correctly because I can see the difference in the GI and refl and visually match the SW raytracing build but the performance stays the same,

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/6/7d61b6c328291b284ae6d707b3d5286b3a0af831.jpeg)

what I miss here?

---

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [September 13, 2024, 12:22pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/2 "2024-09-13T12:22:33Z")

</div>

Still try to understand why disabling the hardware raytracing in runtime doesn’t give me the same performance of a disabled build version , is anyone can help me understand? is it related to the shader compile?

---

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [October 17, 2024, 12:57pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/3 "2024-10-17T12:57:10Z")

</div>

BLACK MYTH WUKONG, SILENT HILL 2… more and more UE 5 games have the option to disable HW raytracing and the performance are improved, so the solution is there somewhere…  
so why in my shipped game using the console command disable all the hw raytracing but doesn’t improve the performance?

---

<div class="post-metadata">

**Author:** ![Teella](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teella/32/1037992_2.png) [@Teella](https://forums.unrealengine.com/u/Teella)\
**Post date:** [October 27, 2024, 9:37am UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/4 "2024-10-27T09:37:51Z")

</div>

The console commands for enable and disable are:

- `r.RayTracing.EnableOnDemand=1`
- `r.RayTracing.Enable=1`

> **[Hardware Ray Tracing in Unreal Engine | Unreal Engine 5.5 Documentation |...](https://dev.epicgames.com/documentation/en-us/unreal-engine/hardware-ray-tracing-in-unreal-engine#toggleraytracingatruntime)**
>
> An overview of the features that use hardware to render real-time ray traced results.

---

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [October 27, 2024, 12:40pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/5 "2024-10-27T12:40:18Z")

</div>

thanks Tella  
I know this forum is very hard to have answer so I really appreciate 🙂

should I add all of them to my setting menu like here or should i made a change in the engine.ini

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/1/fa1ca2544b7a200757c231817c6c63f2b866630e.png)

because I was wondering why most of the games mentioned above they need to restart the game to get it work?  
again thanks for your help

---

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [October 27, 2024, 12:52pm UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/6 "2024-10-27T12:52:43Z")

</div>

oh nevermind i found that info in the link you post it  
i’ll give it a try at the next packaging. thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![AlexSabbioni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlexSabbioni](https://forums.unrealengine.com/u/AlexSabbioni)\
**Post date:** [November 16, 2024, 1:04am UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/7 "2024-11-16T01:04:54Z")

</div>

Awesome the performance are way better! just one thing, the command line are super instable in runtime I use the trick to applied at the next restarting game on my option menu and it works great 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 16, 2024, 1:05am UTC](https://forums.unrealengine.com/t/hw-raytracing-support-enable-drop-performance-even-if-its-disabled-in-level/2004957/8 "2024-12-16T01:05:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
