Unreal Engine 5 VR lagging and have blackscreen when turn around

Hi, My VR project are sometimes lagging and when turn around it only see blackscreen. I’m using Oculus Quest 2
Any advice please.

1
2
3


5

Hey there @PMEG! This generally occurs when either the PC or headset that’s running the instance cannot keep up with the scene. Is this PCVR or native on the quest?

Hi @SupportiveEntity thanks for your reply.

It’s PCVR.
I connected Oculus Quest 2 to my PC with Oculus PC App then play it.

Any advice for fix this problem, please.

I’d first look towards doing a bit of profiling and seeing where the scene is the heaviest and trying to get it’s performance at a reasonable level. Then you’ll be using that same profiling technique to identify spikes. Judging by your scene it looks like you might be doing some Archvis which can be pretty expensive rendering wise.

Once we know where the hitch is coming from, it’ll be easier to start to mitigate it. Another thing is the streaming rate between the headset and desktop can be weaker if using airplay, so best to have direct connection for the fastest transfer rate. (I always work in Airplay though because end users will mostly be doing the same).

Thank you, I will try this.

But if it is because of performance, why it occur only sometimes?
Is there any change in setting in the Oculus that can fix this?

I have done profiling my gpu and this is the result. The highest render seems to be about light but, the value is just about 3-4. (Or this is already too high for VR?). :sob:


It seems like your max is good around 20ms/65ish fps. During the profiling, did the spike that stalls the rest of the scene being rendered occur? We’d have to get a reading from whenever that spike happens.

The lagging and blackscreen occur at the starting point since player joined but, not always happen.
I will try moving around my scene to check if there are other things that might effect this.

I think I have found it. When I wait for my character to spawn first, then wear the headset the stat will peak to about 250ms. If I wear it before the character spawn, the lagging will not happen (Stat GPU is around 20ms like picture above). Even I remove my headset and wear again.

  1. Character Spawned

  2. Then wear headset and check stat GPU

Also I’ve test with 2 laptops and 2 Oculus Quest 2 with the same spec. 1 got the problems but another 1 is normal.