unknownskl / greenlight

Greenlight is an open-source client for xCloud and Xbox home streaming made in Typescript.
MIT License
2.21k stars 124 forks source link

Lag and Packet Drops - DEBUG MENU #828

Open carterlasalle opened 1 year ago

carterlasalle commented 1 year ago

Hello,

I have recently started to have massive lag and packet drops where the screen freezes for over 3 seconds but the audio works. I have tried onecast and I am having none of those issues. I try to open the debug menu, but it is just blank with a disconnect button. @unknownskl

unknownskl commented 1 year ago

Hey, a debug graph has been added including some information about the WebRTC connection. Frames dropped probably means it could not display the frames due to CPU resources not being sufficient and the packet lost counter can give you an indication of the health of your connection. Please try them out and let me know if this helps for you.

carterlasalle commented 1 year ago

@unknownskl It works now! I do see a couple of things, my network's UDP speed is abysmal but also I see the WebRTC issues mentioned about a deprecated rtc mediastreamtrack.

shashanknimje commented 2 months ago

Okay, so open greenlight, then

  1. Go to Settings < Streaming
  2. Under Streaming set both xCloud and xHome streaming bitrate to 12mbps
  3. Set H.264 Profile to High

As per this YouTube recommended bitrate guide, you should shoot for 12mbps for H.264 1080p @60fps. All my packet loss issues pretty much disappeared. And now I have no stutter while streaming.

https://support.google.com/youtube/answer/2853702?hl=en

Edit: 10mbps seems to work best.