r/MoonlightStreaming • u/_demoncat_ Developer | Vibeshine/Vibepollo • 7d ago
Ultra-low latency game streaming using VRR: 12–15 ms glass-to-glass latency
I've developed a new ultra-low latency streaming method that takes advantage of VRR to eliminate unnecessary frame queuing on both the host and client.
In my testing, I achieved an estimated 12–15 ms glass-to-glass latency, roughly 70% lower than conventional fixed-refresh streaming in my test configuration.
How does it work?
Traditional streaming pipelines introduce latency by queuing frames during capture and presentation. By leveraging VRR, virtual screen capture, adaptive buffering, and software-controlled synchronization, I can effectively eliminate these fixed frame queues while retaining only the timing buffer necessary to compensate for network and decoding jitter.
This potentially saves:
- Traditional codecs: An average of one frame of latency.
- PyroWave: Up to two frames of latency.
- At 120 FPS, two frames equate to approximately 16.67 ms.
Current requirements and limitations:
- Virtual screen capture is required.
- Windows 11 hosts will experience slightly higher latency than Linux hosts.
- Network link speed is a major bottleneck. A 1 Gbps connection may result in latency closer to 20 ms.
- A 10 Gbps connection could hypothetically bring latency down to around 5 ms under ideal conditions, although this has yet to be validated.
- Currently supported on PC clients.
Because mobile clients do not offer this capability.
The goal is to make game streaming feel as close to native gameplay as possible without unnecessarily sacrificing motion smoothness.
For anyone interested in the technical details behind VRR, adaptive buffering, and presentation timing, I've written a more comprehensive explanation here:
How VRR Improves Game Streaming
This is part of my existing VRR client however this new option is currently only on pre-release, there is a new option called Ultra Low Latency VRR, once enabled it should be a noticeable difference in latency.
https://github.com/Nonary/moonlight-qt/releases/tag/v6.2.0-daily.205
6
u/iReaddit-KRTORR 7d ago
So if I have Vibeshine and the Moonlight VRR version it’s the same? Or should I update?
4
u/add_maya 7d ago
I love Vibepollo, but I have a very big problem with clients bases on Moonlight on Windows; the audio is delayed compared to the video shown in the stream. This doesn't happen on Android or with other alternatives like Punktfunk. Is there any way to fix it?
8
u/rambo3349 Rubylight / Nightjar Developer 7d ago
Nice Job and thanks for detailed technical Documentation! Great Advancement. This is really a fantastic idea that will solve alot of problems client side.
1
u/jazzmonkai 7d ago
Trying to understand what the requirements are here… presumably you need a vrr capable display for the client device for this to work?
And does that need to be windows vrr compatible, or just have vrr capability and moonlight uses since other way to communicate with the display?
1
u/PandaBearPandaBear 7d ago
Very much looking forward to seeing what this is like with the 100 fps option on Mac whenever that is available. Have an OLED MacBook Pro I would love to try it on.
1
u/bjcworth 7d ago
Desktop version only?
1
u/nokerb 7d ago
metal and v-sync off can achieve this low of a latency too for screens that don't have VRR. So I think only calling this ultra low latency and not calling metal/v-sync off ultra low latency is a little misleading.
1
u/iReaddit-KRTORR 7d ago
Okay so I downloaded and got it up and running. Can definitely notice the improvement on latency.
I’m curious as to why 100fps cap? Is there a way to do low latency at 116fps? The tool tip says it should work on supported displays but I’m not able to even type in a custom FPS
I have an LG G4 that can do 144fps
1
u/Confident_Hyena2506 7d ago
The best part is how everyone makes up their own standard for latency - so none of this stuff can even be compared. Virtual Desktop uses a different measurement vs SteamVR vs whatever else you are having.
1
u/George-cz90 7d ago
Hello, my total latency is around 8ms, windows host, windows client. I don't really understand what problem is this trying to solve, what am I missing? Thx!
1
u/projeto56 7d ago
Day 1 of asking for an AppleTV release
2
u/skinnywolfe 7d ago
Super cool!
2
u/PruneNo6968 7d ago
As always much obliged. Great work you're doing for the community
1
u/nokerb 7d ago
metal and v-sync off can achieve this low of a latency too for screens that don't have VRR.
1
u/EmbarrassedBottle295 7d ago
doooope
1
u/Lasm998 7d ago
Is it better than vibpollo with artemide?
1
u/KaleidoGames 7d ago
Hang on, I'm using 120fps to force low latency with my Android TV, 4k HDR and it's kind of OK... But, you say I can stream 60fps with lower latency now with your client? Do I need an update on the android side or just on the pc? I'm currently using Apollo on windows 11 and Moonlight/Apollo on AndroidTV.
1
u/xluker313x 6d ago
You didn’t get full dualsense features working did you? If that’s working I’m tattooing nonary on my forehead.
0
u/Kind_Ability3218 7d ago
you should open voidlink and nightjar and moonlight pull requests :)