Quest Link + Unity Editor = Display Lag

I’m developing a game for the Quest (1-3) and my Quest is hooked up to my Windows 11 machine through USB. I start Quest Link and everything is fine. When I press the play button in the editor to test the game, it runs fine for a while but after some time (sometimes after 10 seconds, sometimes after a minute), the display freezes for a few seconds and after that I get tearing, stuttering and terrible lag making the game unplayable.

If I exit the game and the Quest returns to the Quest Link screen, it still lags and stutters. The only thing that helps is to sever the connection between the Quest and the PC.

This started a few months ago and I have no idea what has changed.

The Quest is hooked up to a USB 3.2 port on my computer, using a high quality USB 3.2 cable. But it isn’t the connection since the exact same thing happens if I connect the Quest over Wifi using the Quest’s Air Link.

My computer is an I7-12700F with 32GB RAM and an NVidia RTX 4060. Before the 4060, I had an GTX 1070 - it had the exact same problems.

It only happens with the Unity Editor. I can play games over Quest Link fine for hours without it once displaying the same behavior. The problem is similar to what is discussed here . Similar but I don’t think it’s the same since in that thread, they always have a stutter while in my case, it starts out fine. Which is the reason I started a new thread about it.

Is your GPU or CPU usage high?
Do you use the same quality preset as on standalone? (PC has SSAO by default in URP, which kills VR performance)

Hi, and thanks you for your answer.

No, CPU is at 30%, GPU at 60%. And it never starts lagging right away. Sometimes I can play for minutes, sometimes only for seconds before the stuttering begins…

Checked the profiler already?
Or maybe try deep profiling?
Is vram full?
Make sure the camera is set to perspective and not Orthographic (had this once, so annoying)

I haven’t (but I will) but since the game is running on the computer and not the Quest, what could be causing the Quest to lag and stutter?

Yes, camera is set to perspective.

The PC can just not be fast enough, then the performance issues of the PC are acting up

does unity have [×] run background enabled?
does game window have focus mode enabled?

is anything getting spammed in unity log?

someone in twitter mentioned that allowing that “allow access to files”, can slow down quest with link.
(although i have never seen that issue)

with airlink + wifi, it could had similar issue with bad connection…

if possible, check logcat from device, if its showing anything interesting.

1 Like

Well, the game runs fine when running on the Quest itself, so I doubt the I7-12700F and RTX 4060 aren’t fast enough…

I recently brought a 4080 to its knees in a project, where the PC settings had high end SSAO, high LODs, and 8 additional lights active, where the quest version had none of that :stuck_out_tongue:
Also check if it happens in games on steam to see if it just is your project or your VR setup

I’ve been having very similar issues, the only thing that’s worked for me is to lower the resolution of the headset itself in the meta quest link program (Device → Graphics Preferences).

Same project with a Quest 2 works without fault, as does playing games directly on a Q3. so I’m assuming despite the project running fine as a build, and games running fine, it still doesn’t like it!