Search code examples
unity-game-enginevideooculusoculusquest

VR 360 video playback in Unity app is constantly choppy, not at all smooth on Oculus Quest 2


I'm building a simple 360 monoscopic video player app in Unity for Oculus Quest 2. The video is 4096x2048 30fps mp4 which plays very smoothly in the Oculus TV app but inside my app, it's constantly choppy as if it were 15fps or lower. I have tried many encoding options, tried using the AVPro demo plugin but no luck.

I followed this tutorial: https://learn.unity.com/tutorial/play-360-video-with-a-skybox-in-unity

Any help is very much appreciated!


Solution

  • It was the mismatch between the 30 fps video and the default 72 Hz display refresh rate of the Quest 2. I set the frequency to 90 with this line of code

    Unity.XR.Oculus.Performance.TrySetDisplayRefreshRate(90f);
    

    ...and now the video plays smoothly.