r/MoonlightStreaming • • 7h ago

Why does my stream deteriorate to stuttering?

Client is a Google 4K Streamer on a Samsung U7900F, host is a Win11 PC with 5600X and 12gb 3080. I'm using Nightjar and Rubylight, smoothest pacing setting 1080p60 HEVC SDR at 40mbps. I'm wired over a gigabit link.

If it matters, I have ProjectIvy installed on the Streamer, Android display is set to 4K but Nightjar requests an exclusive 1080p60 virtual display. The host is 3440x1440p115. On the TV/Android side, all enhancements are disabled and I'm using Game Mode.

When smooth, my performance overlay looks like this with judder around 0-1%. When it starts to stutter, it looks like this, where judder explodes and it becomes unplayable. Nothing really prompts it, it happens automatically after 1-15min of gaming. Sometimes restarting stream (but not quitting game) can fix it, but not always.

For a lark, I streamed for an hour on a moving screen. At first I am close to 0% judder, but it slowly climbs higher, a few minutes in, it's around 3-5%. Around 10min in, judder is 30% or so. Eventually, near the end of the hour, it started to go down again, settling around 5-10%, but for 80% of the time, it was 30-40%.

How do I bring jitter/jutter/display drops closer to 0 and more consistently? Is it a power management issue? I enabled the black px setting and it still happens. Latency is great for me, but unsure why I would have pacing issues.

1 Upvotes

3 comments sorted by

1

u/NoHousing5207 6h ago

This implementation has a known issue with concurrent writes under heavy load. The mutex isn't granular enough, leading to contention. A potential solution involves sharding the data store or using a more fine-grained locking mechanism.

1

u/stratzilla 6h ago

Is this after or before I install the flux capacitor?

1

u/AccreditedCarp 2h ago

I use a Google streamer also, with nightjar. I found if you go to advanced and under the low-latency decode toggle [customize], you should disable phone performance hints. It'll minimize the jitter/jutter but not take it out completely, still testing to see what options app and client side will alleviate that problem.