# Opening new levels with HMD enabled in Packaged Projects causes tracking issues

**URL:** <https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883>\
**Category:** XR Development\
**Tags:** unreal-engine, bug-report\
**Created:** [October 30, 2023, 5:33pm UTC](https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883 "2023-10-30T17:33:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NASAHDC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nasahdc/32/768108_2.png) [@NASAHDC](https://forums.unrealengine.com/u/NASAHDC)\
**Post date:** [October 30, 2023, 5:33pm UTC](https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883/1 "2023-10-30T17:33:03Z")

</div>

In 5.3 when the HMD is enabled and a level is loaded, opening another level in VR causes tracking problems. Tracking becomes wobbly and choppy, yet FPS remains the same.

This only happens in Packaged Projects.

Reproduced by starting a new project using Epic’s VR template. Start in VR Template Map level and bind a keypress to open the VR Basic level. Package and run. Tested on two machines using Oculus Quest 2 and Vive Pro. Tracking issues are easier to see in these simple levels if you move your head side to side.

Can be worked around by disabling the HMD, delay, open new level, then reenable HMD.

---

<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:** [October 31, 2023, 3:05pm UTC](https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883/2 "2023-10-31T15:05:34Z")

</div>

> [@Vr headset tracking lag with packaged version only](https://forums.unrealengine.com/t/vr-headset-tracking-lag-with-packaged-version-only/1283529/4):
>
> This issue has been fixed on UE5/Main here: [https://github.com/EpicGames/UnrealEngine/commit/899a4c0874f2af141c5b42ea48d282c11a471ba7](https://github.com/EpicGames/UnrealEngine/commit/899a4c0874f2af141c5b42ea48d282c11a471ba7) The fix should go into the 5.3.2 hotfix.

---

<div class="post-metadata">

**Author:** ![\_zk\_3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_zk\_3](https://forums.unrealengine.com/u/_zk_3)\
**Post date:** [November 23, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883/3 "2023-11-23T17:20:15Z")

</div>

UE5.2 also has this problem. I tried 5.3.2 but it hasn’t been fixed yet.

---

<div class="post-metadata">

**Author:** ![lijunfeng717](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lijunfeng717](https://forums.unrealengine.com/u/lijunfeng717)\
**Post date:** [July 22, 2025, 8:16am UTC](https://forums.unrealengine.com/t/opening-new-levels-with-hmd-enabled-in-packaged-projects-causes-tracking-issues/1352883/4 "2025-07-22T08:16:39Z")

</div>

I made the following changes in openxrhmd.cpp file on line 1328, it works in packaged project :

| | // bUseWaitCountToAvoidExtraXrBeginFrameCalls = CVarOpenXRUseWaitCountToAvoidExtraXrBeginFrameCalls.GetValueOnAnyThread(); |
| --- | --- |
| | bUseWaitCountToAvoidExtraXrBeginFrameCalls = 1; |

Thank you !
