Skip to content

Latency and jitter only in moonlight, not observed during bandwidth test #724

Description

@maretodoric

READ ME FIRST!
If you're here because something basic is not working (like gamepad input, video, or similar), it's probably something specific to your setup, so make sure you've gone through the Troubleshooting Guide first: https://github.com/moonlight-stream/moonlight-docs/wiki/Troubleshooting

If you still have trouble with basic functionality after following the guide, join our Discord server where there are many other volunteers who can help (or direct you back here if it looks like a Moonlight bug after all). https://moonlight-stream.org/discord

Describe the bug
I'm facing some strange issue trying to stream from my PC to Raspberry pi 4 4GB.

  • RPi is connected on 5GHz WiFi, router is fairly close (signal strength 85% as per LibreELEC, -50dbm reported by OpenWRT)
  • OS installed is LibreELEC with moonlight add-on.
  • Moonlight-qt is set to use 50000 bitrate (tried all ranges from 10000-100000), 780P
    When i launch a game from RPi, occasionally - every few seconds video and audio will stutter. And it's on repeat.

I cannot figure out where the issue is but i sincerely doubt the network since I'm known to watch 4K videos from Netflix without any issues and when running tests using iperf between pi and PC i get steady and stable results.

Steps to reproduce
Run the game

Screenshots
None, problem not visible on a screenshot

Affected games
Mortal Kombat 11, Steam Big Picture

Other Moonlight clients
Haven't tested

Moonlight settings (please complete the following information)

  • Have any settings been adjusted from defaults?
    Launch parameters adjusted to --quit-after --720 --no-audio-on-host --bitrate 50000
  • If so, which settings have been changed?
    bitrate was adjusted between 10000 - 100000 without any performance impact
  • Does the problem still occur after reverting settings back to default?
    Yes

Gamepad-related issues (please complete if problem is gamepad-related)

Client PC details (please complete the following information)

  • OS: LibreELEC 10
  • Moonlight Version: 3.2.0
  • GPU: Raspberry Pi 4 - Not sure which GPU is it using

Server PC details (please complete the following information)

  • OS: Windows 10 21H2
  • GeForce Experience version: 3.24.0.126
  • Nvidia GPU driver: 497.29
  • Antivirus and firewall software: Windows Firewall, Kaspersky Internet Security (turned off)

Moonlight Logs (please attach)
https://pastebin.com/vNQJNyNA

Additional context
I performed following testing using iperf program between client and server

  • This is test ran when i was not streaming anything using moonlight, so idle: https://pastebin.com/23VnNpJP
    We can see 0 jitter for sender and 0.202ms jitter for receiver both 0 packet loss, consistent speed of 50000K bitrate
  • This is test i ran while i was streaming, so test was running in the background while game was running in foreground in moonlight: https://pastebin.com/pVAHiYx6
    Here we can see inconsistent speed probably due to one stream already running, however jitter is again 0.000 ms for sender and 0.061 ms jitter for receiver however this time we can see 0.056% packet loss which is miserable if you would agree considering UDP datagram.
  • Now this is where it gets really weird, moonlight log shows a lot higher amount of dropped packets and jitter
    Frames dropped by your network connection: 16.44%
    Frames dropped due to network jitter: 14.11%

I would really appreciate assistance to get to the bottom of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions