r/MoonlightStreaming • u/Fluf12900 • 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 ?
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
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
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.
12
u/National-Trip6640 7d ago
Pyrowave 4K120 hdr uses over 1gb that's the only use case for me