moonlight-stream / moonlight-ios

GameStream client for iOS/tvOS
GNU General Public License v3.0
1.12k stars 279 forks source link

Input lag of around 100-150ms (might be related to AppleTV, not Moonlight....) #643

Open anuraagvaranasi opened 1 month ago

anuraagvaranasi commented 1 month ago

Describe the bug There's about 100-150ms extra input lag when running Moonlight on AppleTV.

The way I'm testing is a bit "dodgy" but seems to be a good enough proxy; I'm running moonlight on many clients and pressing a key button on my PC keyboard. I'm then timing the difference in the input sound between my host computer and client.

Note: TV is on game mode.

My findings are

Tetsting makes sense IMO; it's about 80ms extra input lag from TV, rest of latency is unable to be determined due to network. AppleTV latency is the only anomaly.

Sadly it might be an AppleTV specific issue though...I did the same test with the SteamLink app and found similar latency with Moonlight (i.e. 200+ms)

Steps to reproduce N/A always on appleTV

Affected games List the games you've tried that exhibit the issue. To see if the issue is game-specific, try streaming Steam Big Picture with Moonlight and see if the issue persists there.

Other Moonlight clients

Moonlight settings (please complete the following information)

Device details (please complete the following information)

Server PC details (please complete the following information)

rgov commented 1 month ago

Possibly related: There is some discussion about latency in #535, which hasn't been touched since 2022. @felipejfc measured 25-50ms of additional latency when streaming to an Apple TV 4K versus other devices.

1Humza commented 1 month ago

Same issue here. Statistics overlay doesn't catch the added latency either

1Humza commented 1 week ago

Maybe it's related to input. The latency disappears with hardwired peripherals connected to host PC while viewing stream on ATV. With Bluetooth peripherals I can feel the added delay. 🤔