# Stuttering in Oculus Rift in packaged build

**URL:** <https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305>\
**Category:** XR Development\
**Tags:** rift, unreal-engine, Performance, question\
**Created:** [November 9, 2018, 8:43am UTC](https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305 "2018-11-09T08:43:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmeffert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmeffert](https://forums.unrealengine.com/u/dmeffert)\
**Post date:** [November 9, 2018, 8:43am UTC](https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305/1 "2018-11-09T08:43:48Z")

</div>

I keep getting a very strange problem with my packaged Oculus Rift project.

When running the packaged game I experience massive stuttering, while playing in editor is fine. At first I thought it had to be the scalability settings, but that’s not it. In fact, even at 50% screen res the stuttering does not improve.

The thing that makes it weird: the oculus debug tool shows the performance headroom is fine. It’s just dropping many application frames for some reason. The counter is constantly incrementing. Checking “stat unit” and the scene rendering stats confirms: everything seems rendered fast enough. A frame (almost never) takes more than 8ms. The mirrored image on the screen is also butter smooth. I even captured movies for the trailer in this state, while the headset was stuttering all the time.

Even weirder: at times the problem goes away, and not just in a new build but also in all my older archived builds. Then a couple of days or weeks later the problem returns (in all builds). I don’t think I’ve ever seen the problem before the new Rift Home update arrived, but I’m not 100% sure about that.

Development build vs shipping build, 32-bit vs 64-bit does not make a difference.

I have no idea how to approach this problem. Any ideas?

---

<div class="post-metadata">

**Author:** ![dmeffert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmeffert](https://forums.unrealengine.com/u/dmeffert)\
**Post date:** [November 10, 2018, 3:30pm UTC](https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305/2 "2018-11-10T15:30:57Z")

</div>

Using the CPU profiler I discovered that the GameThread is taking too much time in FrameTime → GameEngine Tick → RedrawViewports → Self.

Edit: using more stat counters I’ve tracked the problem down to a ovrp\_WaitToBeginFrame call. In the editor this only takes 4ms. In the packaged build it takes 8 or 9ms, often tipping the gamethread total to over 12ms, causing the stuttering. I don’t know if this even makes sense, or if I’m looking at it the wrong way.

---

<div class="post-metadata">

**Author:** ![dmeffert](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmeffert](https://forums.unrealengine.com/u/dmeffert)\
**Post date:** [November 29, 2018, 6:12pm UTC](https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305/3 "2018-11-29T18:12:47Z")

</div>

The problem went away when I updated my nvidia drivers.

---

<div class="post-metadata">

**Author:** ![Bedhead7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bedhead7](https://forums.unrealengine.com/u/Bedhead7)\
**Post date:** [July 18, 2019, 10:21pm UTC](https://forums.unrealengine.com/t/stuttering-in-oculus-rift-in-packaged-build/437305/4 "2019-07-18T22:21:40Z")

</div>

I have this same problem in 4.22 but updating my Nvidia drivers did not solve it. .
