moonlight-qt icon indicating copy to clipboard operation
moonlight-qt copied to clipboard

Stutter on Macbook Pro M1 Pro (MacOS Montery 12.3)

Open tranbaohuu opened this issue 3 years ago • 42 comments

Describe the bug Stutter on Macbook Pro M1 Pro (MacOS Montery 12.3) , I've disable Location Services (better around 70%), Bluetooth Off ( not better). However stutter still a bit.

Affected games All games

Moonlight settings (please complete the following information)

I've tried: (1080p + 60FPS), (Native 1800x1169 + 60FPS) Vsync: I've tried On + Off (both of them are not better) Video decoder: I've tried Software (+10% better) , Hardware (not better) Video codec: I've tried X264 and x265 (both of them are not better)

Client PC details (please complete the following information)

  • OS: MacOS Montery. 12.3
  • Moonlight Version: 3.2.0
  • CPU+GPU+RAM+SSD: Apple M1 Pro 8 Cores 10 GPUs, 32GB RAM, 512 SSD

Server PC details (please complete the following information)

  • OS: Windows 10 Pro 64bit build 19044
  • GeForce Experience version: 511.79
  • Nvidia GPU driver: RTX 2060 6GB
  • Antivirus and firewall software: Windows Defender

Network Internet cafe 90Mbps. It's was played good on My Laptop Windows before.

tranbaohuu avatar Mar 21 '22 06:03 tranbaohuu

More Information:

I just tried played game in local network at my home and everything are GOOD on my MAC, NO STUTTER with Location Service Enabled.

Thanks you all !

tranbaohuu avatar Mar 21 '22 07:03 tranbaohuu

You state you disabled Location Services and Bluetooth, did you try to do it from the command line instead of GUI ? For me the only thing that works is disabling awdl0 as per https://github.com/moonlight-stream/moonlight-qt/issues/159#issuecomment-883647811

drcursor avatar Apr 30 '22 08:04 drcursor

I've also have a Apple M1 Max and the same stutter problems on a local network. I've tried to adjust Bitrate, Resolution and FPS but nothing worked.

  • Stutter appears frequently (every two second or so)
  • Disabling the Location Service helped a bit
  • Disabling Bluetooth had no effect
  • Disabling awdl0 and disabling the Location Services removed the stutter compleatly
  • Disabling awdl0 and enabling the Location Services made the Streams stutter every once in a while
  • Disabling adwl0 and enabling Bluetooth had no negative effect on the stream, no stutter for me at all
  • Reenabling adwl0 makes the stutter appear immediately

Thank you very much @drcursor for providing help, this command worked for me (sudo /sbin/ifconfig awdl0 down).

duydao avatar Aug 05 '22 11:08 duydao

I can confirm the stuttering (every two second or so) on my MacBook Air M2.

Thanks @drcursor, the command solved the problem (sudo /sbin/ifconfig awdl0 down).

Bauzival avatar Aug 13 '22 12:08 Bauzival

Same issue on my macbook pro m2. "sudo /sbin/ifconfig awdl0 down" that command solved

ozanuzer avatar Sep 10 '22 11:09 ozanuzer

我的 macbook pro m1 也有同样的问题。“sudo /sbin/ifconfig awdl0 down”命令解决了

wangrui1573 avatar Feb 19 '23 16:02 wangrui1573

This didn't work for my M2 Mac Mini, anybody got rid of the stutter a different way?

DHernan avatar Mar 02 '23 04:03 DHernan

I have the same issue, stutter fixes did not work for me for a Macbook Pro w/ M2 Pro, on MacOS v13.4. I have:

  • The crontab script mentioned here that keeps AWDL down.
  • Settings that mirror another MacOS machine that works perfectly (that one is an M1 Max).
  • Verified that my network is up to the task (via aforementioned M1 Max).
  • Run the same test on a brand new user on the M2 machine (with AWDL down).
  • A host that is running Sunshine (v0.20) and has Moonlight Internet Hosting Tool enabled.
  • Attempted minimum resolution settings (720p, 30fps).
  • Tried different combinations of VSync, video decoding, and video codecs.

You can see a sample of what I'm seeing linked below. This is a version I exported to 480p for the sake of file size, but it still demonstrates the stuttering and minor crackling. https://github.com/moonlight-stream/moonlight-qt/assets/2360593/8cccd8a0-47d4-400d-8cb8-6570fa9faa03

Edit: For reference, the video playing is LG's 4k test, found on YouTube here.

astroz avatar Jun 17 '23 23:06 astroz

@astroz did you found solution? i have the same problem on my m1 pro like in your video

Flyover-ArtSk avatar Aug 06 '23 19:08 Flyover-ArtSk

Exact same issue when playing that youtube on my M1 Pro. Lot of cracklin noise. My Windows 11 laptop has no issues.

Also tried every setting available, software/hardware decoding, vsync, nothing helps.

giejay avatar Aug 10 '23 11:08 giejay

Same issue using the Apple M1. Somehow, the Logitech G Cloud which much lower spec (Snapdragon 720G) provided more consistent performance.

My best settings for mac right now is using Software Encoding + H264, it has a warning about latency but at least it's more consistent.

KietChan avatar Aug 25 '23 02:08 KietChan

@astroz did you found solution? i have the same problem on my m1 pro like in your video

No solution yet, unfortunately. I ended up using Parsec on that machine, and moonlight on everything else.

astroz avatar Aug 26 '23 22:08 astroz

Hello, i'm having the same issue on my Macbook M2 Pro on Wifi 6 network. But for some reasons, i have no issue when i connect the Macbook to my TV. (with HP USB C dock) As astroz mention, it also works fine when using Parsec as well.

Brainwasher06 avatar Oct 08 '23 10:10 Brainwasher06

Hello, i'm having the same issue on my Macbook M2 Pro on Wifi 6 network. But for some reasons, i have no issue when i connect the Macbook to my TV. (with HP USB C dock) As astroz mention, it also works fine when using Parsec as well.

M1 macbook pro on wifi 5 here.

Just wanted to add that using my usb c dock connected to my tv also stops the stuttering. No idea why a dongle would have any affect but here we are.

Kosh94 avatar Oct 20 '23 23:10 Kosh94

@Kosh94 Don't know if it will help you as well, but I've updated to Moonlight 5.0.0 and Sunshine 0.21.0 (the latest version right now). And it seems to work fine now.

I did not run any extensive tests, just opened a YouTube video for a few minutes and did not notice any stuttering.

Edit : After more testing, still having issues. Feel like it's less frequent but more noticable when it happen.

Brainwasher06 avatar Oct 24 '23 09:10 Brainwasher06

I upgraded to Moonlight 5 / Sunshine .21. It's much better, but small stutters are still observable (both audio and video). The audio ones were much more noticeable, but still sporadic. This was on a 60fps 4k video, but on less sensitive media, it is now much more usable.

This is on an M2 Macbook Pro, 16GB RAM, MacOS v13.4.

astroz avatar Oct 31 '23 00:10 astroz

Seeing the same thing with Moonlight 5 on my M1 Macbook Pro. Taking awdl0 down fixes it immediately. Would be neat if we had a setting to disable it automatically while a stream was going (and re-enable it when you quit Moonlight).

djrobx avatar Dec 28 '23 20:12 djrobx

Seeing the same thing with Moonlight 5 on my M1 Macbook Pro. Taking awdl0 down fixes it immediately. Would be neat if we had a setting to disable it automatically while a stream was going (and re-enable it when you quit Moonlight).

Fixed it too for me on my M2 Pro

Zauberio avatar Dec 31 '23 11:12 Zauberio

awdl0 down removed my stutter too (M1 MacBook Pro, Sonoma 14.2.1, Moonlight 5.0.1). I'm running it in an endless loop while using for time being, would be a neat addition to client options.

sildani avatar Jan 12 '24 02:01 sildani

There is a utility "WiFried X"

https://medium.com/@mariociabarra/wifriedx-in-depth-look-at-yosemite-wifi-and-awdl-airdrop-41a93eb22e48

That will give you a toolbar item that keeps awld0 down if desired, and makes it easy to turn on and off.

djrobx avatar Jan 12 '24 02:01 djrobx

I've been experiencing the same issue on my MacBook Pro M1. The stuttering stopped completely after changing the wifi channel to 44 (5GHz network).

Michael-128 avatar Feb 04 '24 00:02 Michael-128