r/MoonlightStreaming • • 7d ago

any difference between 1gbe and 2.5gbe ?

My pc has a 2.5gb ethernet port that I have running into a 2.5gb switch that I use for my nas, but I'm typically streaming off my Apple TV, which has a gigabit port. I'm noticing a tiny bit of input lag (which could be caused by anything lol) but I'm wondering if it would be worth it to use something that has a 2.5gb port as well? Anyone have any real experience with both and notice any difference ?

7 Upvotes

22 comments sorted by

12

u/National-Trip6640 7d ago

Pyrowave 4K120 hdr uses over 1gb that's the only use case for me

1

u/rtgordon 7d ago edited 7d ago

This is the second time I've seen this statement. Pyrowave is enabled on the Xbox series which have gigabit Ethernet ports. I have pyrowave enabled and running 4k120 hdr. It looks way better than hevc and h.264. My bitrate is usually around 600mbps. What am I missing?

This photo is showing 90ish fps but that it a host limitation due to my graphics settings. 120fps is no problem on other games.

5

u/JKGiova 7d ago

You surely got some artifacts, I’m sure because you need just to calc bit per pixel for this, and 4k129 require more bits than 600mbps carries. Your artifacts are still imperceptible probably, so you are still good to go: the number of artifacted grow with the inversal of the square of the bandwith rate, so don’t lower it bc you are likely to be on the edge of image degradation

2

u/rtgordon 7d ago edited 7d ago

I understand... 600mbps will have more compression than 800 or 1000mbps at the same resolution/chroma/hdr settings. The Xbox Moonlight client can do pyrowave 4K120 4:4:4 HDR at up to 800 Mbps, and the developer says it should run without packet loss over gigabit. Pyrowave is still compressed codec and is not raw video so I'm not sure about the bits per pixel calculation for all implementations.

At the end of the day, I'm digging it. It looks alot better and less compression than hevc 4:2:2 on my setup. I'd be looking at a mini PC with 2.5gb nic for my setup to max out pyrowave if I understand it. Now I'm curious, though 🤔

4

u/MoreOrLessCorrect 6d ago

I can give you an example of PyroWave 1200 Mbps vs 750 Mbps @ 4K/90:

https://storage.googleapis.com/moreorlesscorrect/moonlight-streaming/ac_rally_pyrowave/index.html

This is over a 2.5Gbps connection, so latency would be higher on 1Gbps by a few ms.

The differences are obvious if you view the images at 100%, in my opinion. Will you notice them playing the actual game on a 4K TV? I'd guess most people probably won't unless they are sitting close or have a very big TV.

1

u/rtgordon 6d ago

Thanks. It took me a minute but on some hard edges like the triangle flag or logo on top of the car, I can see it.

For my 65 inch tv at my distance, I wonder how noticeable it would be. With the speed at which this is evolving, I'm probably not going to rush out and buy a mini PC for this. The improvement in color has me happy for now.

3

u/AriGrandeisQT 7d ago

For Pyrowave it's a bit different, the artifact are very bad compared to the ones that H264/265 have

2

u/JKGiova 7d ago

Basically with this calc (got it made by AI, too complicated for me) you can find the necessary bandwith for your connection to not have artifacts other then the little quality drop included by Pyrowave itself. If you go under this fixed bandwith you are basically approssimating some pixels in the packets, and if you lower it by x, the pixel affected will be x^2 modified or there will be x^2 modified pixels. It isn’t very precise as explaination but it makes the idea

5

u/Odd-Gur-1076 7d ago

AppleTV has pretty infamous bluetooth input latency and there's nothing you can really do about it unless your controller/keyboard/mouse can use a 2.4ghz dongle that will reach back to the host pc

5

u/JKGiova 7d ago

For ATVs the problem is bluetooth input lag, sure Pyrowave at 1gbps+ could improve network connectivity, but the ATV bluetooth is the bottleneck rn, maybe you could just try to get a mini pc, an sbc if you like playing a bit with linux or an Nvidia Shield

5

u/fredastere 7d ago

'Bout 2.5 times more

2

u/Futonpimp 7d ago

What client are you guys using with pyrowave?

3

u/JKGiova 7d ago

https://github.com/JKGiova/moonlight-tvos-pyrowave that’s my own, test it and let me know!

1

u/AriGrandeisQT 7d ago

2.5GbE can just reduce 0.2/0.3 ms on AV1/HEVC and 0.5/1ms on Pyrowave. Nothing noticeable

1

u/Yuckster 2d ago edited 2d ago

Depends on bitrate. A 1000mbps stream has 8.33ms of latency on 1gbe but only 3.33ms on 2.5gbe. 5ms difference. Even a 600mbps stream has a 3ms difference.

A typical ~100mbps HEVC stream has .83ms of latency on 1gbe and .33ms on 2.5gbe. Not gonna matter there.

1

u/AriGrandeisQT 2d ago

I tested a lot of things, AV1 200Mbps is better than Pyrowave 1500Mbps for the latency

1

u/zeldeamipro 2d ago

Unless your client also has 2.5Gb Ethernet, is a problem more than a benefit.

1

u/Yuckster 2d ago edited 2d ago

Open the Moonlight stats (ctrl + alt + s) to see where the issue is. Typically either the host is taking a long time to encode or the client (your apple tv) is taking a long time to decode.

If either the encode or decode is taking longer than your framtime budget you will have stutters. Your frametime budget is 1000ms / your fps. So a 120fps stream has a frametime budget of 8.33ms or a 60fps stream has a 16.66ms budget. The encode time and decode time each need to be less than your budget time. Realistically you also nded to have some headroom. So encode should be 5-6ms (or less) for 120fps and ~11ms for 60 fps. Decode as well.

This will just give you a smooth framerate, but you will still have a delay in those frames displaying on your screen of encode time + decode time. So if encode and decode are both 11ms, you'd have a 22ms delay in seeing the frame. Typically the encode takes much much longer than the decode. For a good experience I would suggest 10ms delay or lower but depends on the game, if you're using controller or mouse, and your sensitivity to the latency.

This is an oversimplification but kinda what you need to be aware of.

Another component is transmit time over your network which is what you're asking about here. This wasn't much of an issue previously with your typical HEVC encoding as they didn't use that much bitrate. Each frame of a 100mbps 60fps stream only took 1.67ms to transmit on a 1gbe connection or .83ms for a 120fps stream (each frame is half the size). Going to 2.5gbe gets these times down to .67ms and .33ms. If you're using a standard setup you're most likely using HEVC and at or below 100mbps bitrate so you're probably around those numbers. So going from 1gbe to 2.5gbe might save you 1ms. (Almost nothing.)

However pyrowave encoding recently came out which flips this. Pyrowave encoding/decoding can be much faster than HEVC but uses a lot more network bandwidth. A pyrowave stream could be 500mbps or even up to 1500mbps. This makes your network way more important. A 1000mbps 120fps stream over 1gbe has a latency of 8.33ms while on 2.5gbe it's 3.33ms. So it cuts out 5ms. This is more important for eliminating stutters and keeping the stream smooth by keeping in your frametime budget than the actual delay. But 5ms is 5ms and would be perceivable. You're most likely not using pyrowave as it's still "experimental" and requires manual activation in most cases.

0

u/Shopping-Limp 6d ago

Your problem is not lack of bandwidth, upgrading to 2.5 will do nothing

1

u/Comprehensive_Star72 🖥️ 5090 9800x3d | 🎮 Core Ultra 2 | 🎯 2k@240fps | 📶 2.5GbE 4d ago

The bandwidth has a time component 1GbE is 1Gbps and 2.5GbE is 2.5Gbps so of course it will do something.

1

u/Shopping-Limp 4d ago

how much of a difference in ms do you think? perceptible?

1

u/Yuckster 2d ago edited 2d ago

Here's some realistic numbers for a 4k 120fps HDR pyrowave stream.

  • 600mbps (ok quality) -

1gbe: ~5ms (near practical limit)

2.5gbe: ~2ms

10gbe: ~.5ms

  • 1000mbps (better) -

1gbe: ~8.33ms (unusable, will cause frame drops at 120fps)

2.5gbe: ~3.33ms

10gbe: ~.83ms

  • 1500mbps (target bitrate) -

1gbe: ~12.5ms (unusable obv)

2.5gbe: ~5ms (near practical limit)

10gbe: ~1.25ms

The formula is:

Transmit time (ms) = (stream bitrate mbps / fps * link speed mbps) * 10000

If you have a 1000mbps stream at 120fps, each frame is 8.33mbit (1/120th of 1000mbit) or about 1MB. That 8.33mbit needs to transmit in under 8.33ms for 120fps or they won't be transmitted fast enough to keep 120fps. However you need to leave some headroom so realistically it should be 5-6ms or under.