# UE 5.2 Performance Overhead When using DX12 with VR

**URL:** <https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929>\
**Category:** XR Development\
**Tags:** unreal-engine, bug-report, editor, question\
**Created:** [May 20, 2023, 12:59am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929 "2023-05-20T00:59:48Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProjectZ3RO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProjectZ3RO](https://forums.unrealengine.com/u/ProjectZ3RO)\
**Post date:** [May 20, 2023, 12:59am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/1 "2023-05-20T00:59:48Z")

</div>

Hello! Our team wanted to take advantage of nanite in UE5.2 to so we disabled forward rendering and used DX12. However we noticed that even with nanite turned off and even set global illumination to none, it has a very poor performance when used in VR.

Steps to reproduce result:

1. Create VR Template
2. Set DX12 as default RHI
3. Disable Forward Shading
4. Test in VR

We tried lowering the screenpercentage and scalability settings and it doesn’t respond at all. The problem goes away when we either use DX11 or forward shading but both doesn’t support nanite. Is there’s a work around we can use? Is this a known bug?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 20, 2023, 4:01am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/2 "2023-05-20T04:01:23Z")

</div>

Hey there @ProjectZ3RO! Welcome back to the community! For reproduction purposes, are you testing in OpenXR/SteamVR PIE or direct on native hardware, if so which hardware?

---

<div class="post-metadata">

**Author:** ![ProjectZ3RO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProjectZ3RO](https://forums.unrealengine.com/u/ProjectZ3RO)\
**Post date:** [May 23, 2023, 1:27am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/3 "2023-05-23T01:27:25Z")

</div>

I’m testing using OPEN XR with Quest 2 as the device.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 25, 2023, 4:46am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/4 "2023-05-25T04:46:21Z")

</div>

Hey there @ProjectZ3RO! Been doing a bit of testing with my Q2 and can see a solid drop in performance in the base level of the VR template outside of forward rendering. This isn’t quite as bad in 5.1 and that’s interesting! Haven’t been able to pin down the change that caused it however.

---

<div class="post-metadata">

**Author:** ![ProjectZ3RO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProjectZ3RO](https://forums.unrealengine.com/u/ProjectZ3RO)\
**Post date:** [May 26, 2023, 1:19am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/5 "2023-05-26T01:19:39Z")

</div>

Thanks! For the feedback. I’m glad to know its not an isolated case. reducing screenpercentage and scalability settings doesn’t work either.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 28, 2023, 12:00am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/6 "2023-05-28T00:00:22Z")

</div>

It does seem like it’s universal! May I get your specs? I’m consolidating information on the issue for a possible full report.

---

<div class="post-metadata">

**Author:** ![CaptainFalcon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CaptainFalcon](https://forums.unrealengine.com/u/CaptainFalcon)\
**Post date:** [May 30, 2023, 10:39am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/7 "2023-05-30T10:39:28Z")

</div>

This has also been holding us back from switching to UE5 so I’d love to see if something can be done about this.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [May 31, 2023, 8:50am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/8 "2023-05-31T08:50:46Z")

</div>

I understand! I was unaware (while I use VR, I always use forward rendering so it never crossed my mind) of how much of a performance hit it was. For PCVR the shift to locked in DX12/SM6 guaranteed a bit of extra heft, but it’s been felt across the board. The final report will be written up soon if I can’t find any workarounds besides dropping RHI/mobile tier lighting to maintain a proper 90 on standard hardware.

---

<div class="post-metadata">

**Author:** ![ProjectZ3RO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProjectZ3RO](https://forums.unrealengine.com/u/ProjectZ3RO)\
**Post date:** [June 7, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/9 "2023-06-07T15:22:12Z")

</div>

> [@SupportiveEntity](#):
>
> been felt across the board. The final report will be written up soon if I can’t find

Thanks! I have 5900x, RTX3060Ti, and 64gbram. It really does get locked up and doesn’t respond to any visual adjustments at all. Hoping for some good news on this.

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 1, 2023, 11:38pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/10 "2023-08-01T23:38:03Z")

</div>

If I understand this correctly, I’m having the same issue in 5.2. 3080ti, 32gb DDR5 RAM. Quest 2. In VR preview there is horrible shake and stutter and it’s just almost unusable it seems. Using the OpenXR plugin with Air Link. It makes me want to stick with 4.27 but I feel like I’ll just get left behind.  
From my understanding, as long as I’m developing PCVR and not standalone, nanite and lumen shouldn’t be a problem?

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [August 2, 2023, 5:15pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/11 "2023-08-02T17:15:56Z")

</div>

You’re not expected to hit good performance w. Nanite and Lumen, even on a 4090. It’s an area of ongoing work, but we don’t have a timeline as to when XR support for Nanite and Lumen will leave experimental.

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 4, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/12 "2023-08-04T20:53:02Z")

</div>

Would you suggest turning them off and continuing wih 5.2? Or is 4.27 still the better way to go? Thank you for the reply btw!

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [August 8, 2023, 2:41pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/13 "2023-08-08T14:41:47Z")

</div>

You’re not required to use Nanite/Lumen only because you’re using UE5. Since we’re not actively supporting 4.27 outside of required SDK updates for 4.27 projects to ship on certain platforms, it’s recommended that you continue w. 5.X.

The VR Template in UE5 is using Forward Shading, and a stationary light w. baked lighting for reference.

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 9, 2023, 6:04pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/14 "2023-08-09T18:04:37Z")

</div>

Maybe that’s my problem, I’ve been starting in Third Person (that’s the kind of game I’m looking to make). I’ll try starting in VR and adding 3rd person. I sure appreciate the insight.

---

<div class="post-metadata">

**Author:** ![VictorLerp](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/victorlerp/32/738381_2.png) [@VictorLerp](https://forums.unrealengine.com/u/VictorLerp)\
**Post date:** [August 9, 2023, 8:27pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/15 "2023-08-09T20:27:45Z")

</div>

You can add the Third Person template content to the VR Template by using this feature:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/6/4a65468f2acf0a32c62726c7cc06fd1921d3d75f.jpeg)

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 9, 2023, 8:37pm UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/16 "2023-08-09T20:37:49Z")

</div>

Got it, thank you. I’m out of town for a few days but I’ll try it when i get home and let you know!

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 13, 2023, 12:45am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/17 "2023-08-13T00:45:31Z")

</div>

Ok it still feels jittery. I played with enabling the (deprecated) Oculus plug-in instead of OpenXR and it looks a thousand times better. Any thoughts on that? I’m using AirLink with my Q2.

---

<div class="post-metadata">

**Author:** ![UnderBigSky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnderBigSky](https://forums.unrealengine.com/u/UnderBigSky)\
**Post date:** [August 13, 2023, 4:47am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/18 "2023-08-13T04:47:03Z")

</div>

I think it was the anti aliasing, it’s starting to look better.

---

<div class="post-metadata">

**Author:** ![CaptainFalcon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CaptainFalcon](https://forums.unrealengine.com/u/CaptainFalcon)\
**Post date:** [October 12, 2023, 10:29am UTC](https://forums.unrealengine.com/t/ue-5-2-performance-overhead-when-using-dx12-with-vr/1171929/19 "2023-10-12T10:29:14Z")

</div>

Hey Victor, I just wanted to chime in to say that the problem for me is that even without Nanite and Lumen DX12 performance seems worse in VR. This has always been the case for me, even in 4.27. However if I’d want to use something like Nanite in the future, just the DX12 overhead alone makes it less viable so I was wondering if there’s something going wrong with VR and DX12 in general?
