Stuttering in VRChat
so i've been using alvr for quite awhile now as i dont have a gpu in my laptop i run on intel integrated graphics and alvr allowed me to play pcvr using that. Up until around 2 days ago i've been getting really bad jitters, like whenever i move my head it looks like my frames drop too like 2 but its not my frames, i checked my frames and i was running around 24 constantly as i usually do, but this time the jitters and stutters are so bad that i cant even play. I checked my internet speed too and its not that, i get around 940mbps download and around 45-50mbps upload which can handle multiple devices streaming 4k and having multiple gaming consoles playing at once. I really need help as this is my only way of playing pcvr and i wouldnt want to have to get a desktop computer just to use virtual desktop
Would you take a screenshot at frame-generating-latency?
Such as:
Would you take a screenshot at frame-generating-latency? Such as:
Heres a screenshot of that, sorry for the late reply:
To also add to my post, i have a MSI Prestige 14 AI Evo laptop it has a intel core ultra 7 cpu and it uses intel arc graphics from the cpu. But the issue isnt with my performance or my internet so i honestly dont know where this stuttering and jittering came from because i used to play all the time with no problems.
I've kind of figured out what was wrong and i knew it wasnt me, its saying client fps and it drops down to like 2 and 1 but my streamer fps stays around what the usual is like 28 - 35 fps. So i dont know why this has started to happen but any help would be appreciated
I also encountered lag issues, I'm not sure if it's the same situation as yours. Once I occasionally saw an error related to video encoding from Easy Anti-Cheat, then I reinstalled VRChat, and the lag issues stopped happening.
Hey, I wanted to write about this. I'm not sure if this is related to #2537 but I did some exploration. I still need to test this on a Windows environment even though Linux is the only place I have this issue in. I also have this same problems on other games, not just VRChat all with similar visual shaking (stuttering).
I initially had noticed that opening menus caused massive dips on not just the server side but the client side as well. I was wondering if maybe the headset was compensating for something and had trouble keeping up. On a separate note, I would consistently see large fps drops on the server side but it holds its shape consistently. I am wondering if this is a certain process that the server is hanging up on, not entirely sure if it is the game application or ALVR itself.
You can see the frame dips and drops yourself in the following images.
I had initially tried to increase the preferred framerate to 90Hz in hopes that it may be just synchronization issues since SteamVR was set on 90Hz reguardless of the option in VRChat but that didn't fix the "shaking" problem. I then went to test if it was a headset processing issue by disabling the pre-enabled client-side settings. And that had fixed my problem... well most of it. The culprits were upscaling and post-processing for the client side. About 90% of that shaky stuttering went away. The other 10% only happened when the workload was bigger (a larger world in VRChat, or loading up things like menus or assets). There's more to the stuttering than a couple of settings. But otherwise, it ran significantly better with much less client-side fps dips.
Client-side foveation also improved and reduced the amount of times those dips would occur.
We are now a few steps closer to finding the root cause of this. Just need some testing on Windows and figuring out the true cause of the dips.
More notes: when the stuttering occurred my CPU ran at about 25% usage, my GPU jumped between 0% and 50% usage, and I use software encoding. I still get stuttering problems even if I use hardware encoding.
More notes: when the stuttering occurred my CPU ran at about 25% usage, my GPU jumped between 0% and 50% usage, and I use software encoding. I still get stuttering problems even if I use hardware encoding.
@Arr4y, Hey have you found any other solves for the issue? And can you please let me know what to do to kind of fix it like how you have done thanks.
So far, disabling client-sided processing (besides foveation) seems to have a large positive impact on the performance and the stutters. I believe some of it is due on the headset that is being streamed to but the issues do not persist on Windows. Linux seems to be where this issue shows up. So we need more testing.
More notes: when the stuttering occurred my CPU ran at about 25% usage, my GPU jumped between 0% and 50% usage, and I use software encoding. I still get stuttering problems even if I use hardware encoding.
@Arr4y, Hey have you found any other solves for the issue? And can you please let me know what to do to kind of fix it like how you have done thanks.
Something that corrected the issue for me in https://github.com/alvr-org/ALVR/issues/2537 was to turn on Linux async compute in the Extra tab of ALVR (of course, Linux-only).
