4.25 & 4.26 VR Preview issues with Oculus Link

Hello, there fellow developers,

I’m trying to develop an app for the Oculus Quest 2.

This all goes very smoothly and can build for windows & the Quest 2 and run the app without any issues.

However, once I want to test something real quick and connect the VR headset with Oculus Link and try to run the game in VR preview it runs at 5 fps if not lower. Funny enough if I build it for windows it works perfectly fine. It seems to be an engine issue. I can also play games on my computer just fine with Oculus Link.

What could I do to fix this? Since it takes 5-10 minutes to make a build to test quick changes and this makes it impossible to debug.

I’m sorry I don’t have an answer to your question, but I’m just trying to figure out how to get the VRPreview to be enabled LOL. I’m using the Oculus Quest 2 with Oculus Link, but it’s still not showing for me. I think I’ve configured everything correctly. Anything specific you may have done to get it to work?

I’m using Quest 2 with Oculus Link to do VR previews in both 4.25 and 4.26.1 without the performance problem you describe. I’m not sure what may be different in your project/system, but here are some things to check.

Go to Editor Preferences > General - Performance > Editor Performance and disable “Use Less CPU when in Background” if you haven’t already. If you don’t disable this then if any other app on your system comes to the foreground while previewing your VR scene you will definitely see significantly low frame rates.

Another thing is to reference Oculus’s own Unreal Engine: Oculus Quest Quick Start for their recommended project settings and make sure you’re using them for your project.

FWIW, I have my project configured to use Forward Rendering. I believe on Quest (and all Android devices) Forward Rendering will be used regardless of what you have this option set to, but with it enabled you will be assured that the Forward Renderer is used during in-editor previews as well when running on device.

I figured it out and feel stupid for it, for some reason when I playtest with the Oculus Plugin enabled it sees the engine itself as a VR application which isn’t the case, and tries to render the preview window over the engine or something.

In the Oculus VR menu I have to select add window select one of the 2 Unreal Engine Windows and if I select the correct one it doesn’t lag anymore.

I suffer from the same issue, but I can’t find the “add window” button anywhere in the OculusVR plugin…

EDIT: Never mind, I feel stupid too… in my case the preview window was not on focus and I have to switch back to desktop and forth to preview win…

This worked for me once. It has however continued to be slow since then. Quite frustrating.