# Replays are choppy with VR

**URL:** <https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931>\
**Category:** XR Development\
**Tags:** Networking, replay-system, replay, unreal-engine, question\
**Created:** [November 30, 2016, 4:47pm UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931 "2016-11-30T16:47:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [November 30, 2016, 4:47pm UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/1 "2016-11-30T16:47:50Z")

</div>

Hey all,

Not sure if any of you have tried using the demorec/demoplay features for network replays with a VR headset. I have a simple setup where the headset position/orientation of pawns is updated every frame across all clients. If I test it, it runs fine and all the replicated headsets move smoothly. It is my understanding of UE4’s replay system that it just plays back network traffic. So if things looked fine in a networked game, it should look find in a replay.

However, when I go to demoplay a session that I recorded, the pawns move in a very choppy way. It’s as though they are running at 8fps. The strange thing is that I can move around the scene no problem with high fps, it’s just the replicated actors in the replay are stuttering all over the place. I don’t get that issue for non-vr pawns.

Anyone encounter something similar, or know of something obvious I may be missing?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33bb0bed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33bb0bed](https://forums.unrealengine.com/u/anonymous_user_33bb0bed)\
**Post date:** [November 30, 2016, 9:33pm UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/2 "2016-11-30T21:33:54Z")

</div>

Found it! Turns out there is a sampling rate parameter, and by default it was set to 8Hz. The console command `demo.recordhz 60` run before starting the recording made everything nice and smooth. The docs for this stuff are pretty nonexistent.

Hope this helps someone else!

---

<div class="post-metadata">

**Author:** ![svengali\_no](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@svengali\_no](https://forums.unrealengine.com/u/svengali_no)\
**Post date:** [February 5, 2018, 10:44am UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/3 "2018-02-05T10:44:57Z")

</div>

I lost a lot of time thinking I’m doing something wrong. So thanks!

---

<div class="post-metadata">

**Author:** ![tark146](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tark146/32/465244_2.png) [@tark146](https://forums.unrealengine.com/u/tark146)\
**Post date:** [December 12, 2020, 8:02pm UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/4 "2020-12-12T20:02:53Z")

</div>

That was very used to me! Thank you!

---

<div class="post-metadata">

**Author:** ![MightyyDan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MightyyDan](https://forums.unrealengine.com/u/MightyyDan)\
**Post date:** [April 9, 2021, 1:06am UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/5 "2021-04-09T01:06:35Z")

</div>

Lost a few hours thinking I messed up the networking replication code… demo-recordhz fixed the issue!

---

<div class="post-metadata">

**Author:** ![Termitosss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/termitosss/32/88716_2.png) [@Termitosss](https://forums.unrealengine.com/u/Termitosss)\
**Post date:** [December 5, 2023, 11:06am UTC](https://forums.unrealengine.com/t/replays-are-choppy-with-vr/377931/6 "2023-12-05T11:06:11Z")

</div>

I found another parameter, there is also demo.MinRecordHz and setting this to higher value may also help:

- demo.RecordHz - max number of frames recorded per second
- demo.MinRecordHz - min number of frames recorded per second
