moonlight-stream / moonlight-qt

GameStream client for PCs (Windows, Mac, Linux, and Steam Link)
GNU General Public License v3.0
9.5k stars 554 forks source link

Stutter on Macbook Pro M1 Pro (MacOS Montery 12.3) #753

Open tranbaohuu opened 2 years ago

tranbaohuu commented 2 years ago

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)

Server PC details (please complete the following information)

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

tranbaohuu commented 2 years ago

Log: Moonlight-1647842596.log

tranbaohuu commented 2 years ago

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 !

drcursor commented 2 years ago

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

duydao commented 1 year ago

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.

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

Bauzival commented 1 year ago

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).

ozanuzer commented 1 year ago

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

wangrui1573 commented 1 year ago

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

DHernan commented 1 year ago

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

astroz commented 1 year ago

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:

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.

Flyover-ArtSk commented 11 months ago

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

giejay commented 11 months ago

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.

KietChan commented 11 months ago

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.

astroz commented 11 months ago

@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.

Brainwasher06 commented 9 months ago

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.

Kosh94 commented 9 months ago

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.

Brainwasher06 commented 9 months ago

@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.

astroz commented 9 months ago

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.

djrobx commented 7 months ago

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).

Zauberio commented 7 months ago

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

sildani commented 6 months ago

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.

djrobx commented 6 months ago

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.

Michael-128 commented 5 months ago

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).

lprhodes commented 1 month ago

Gaming Mode seems to resolve this for me on iPad OS 18, Moonlight is detected for gaming mode automatically. I’ve just been playing on a different channel and with Location Services turned on with no issues.

Jakob-Koschel commented 1 month ago

I tried it on a fresh install of MacOS 15 Beta 1 (Location Services turned off, only Moonlight installed after setup).

Shutter is still there with both 6.0.0 (no Game Mode) and 5.0.1 (Game Mode). Tested by opening the "AirDrop" tab in Finder.

Seems like changing the WiFi channel will be the only viable solution.

meowmeowfuzzyface commented 1 month ago

Fiddling with fullscreen and location services didn't fix it for me, but I've found something weird that does. Hopefully it can help some others here.

I was getting frequent micro stutters on my M3 MacBook Air (about 3-4 stutters per second based on audio cutting out) for a few minutes at a time. I noticed I could trigger it when I picked up my iPad to look something up. It would continue stuttering for a few minutes after I put it down.

Turning on airplane mode on my iPad immediately fixed the stutters on the Mac. Turning off bluetooth, location, and airdrop (on either device) had no effect, but airplane mode by itself on the iPad fixes it. If I turn it back on, the stutters start again right away. Like a light switch.

I suppose this means the stutters must be coming from the iPad and Mac communicating, right? And neither Game Mode nor turning off location services (or bluetooth or airdrop) can prevent this, but airplane mode can.

I did not try changing the wifi channel.

EDIT: OK so it's not that simple. I think I've narrowed down the problem to the find my Mac/iPad function. It still functions in airplane mode but it seems like it checks when it's disabled/enabled, and when you wake it. But I can still make it stutter in airplane mode.

Toggling on/off find my Mac while find my iPad is off makes the stutter stop until the next time I wake the iPad. Toggling location services on off does this, too, but only on the Mac. Find my iPad seems to ignore the location services setting entirely.

So it's not a perfect solution as I thought. It seems like toggling any of the functions that affects the "find my" function on either device affects the stutter.

EDIT 2: OK sorry this is getting long.

Disabling Universal Control on the Mac has significantly reduced the micro stutters. It has also changed the behavior. Waking the iPad still causes stuttering, but now it resolves in 10-15 seconds rather than a minute+. Waking the iPad again over the next few minutes does NOT cause stuttering. But waking it after a while does.

HunterAhlquist commented 1 week ago

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.

Has not been updated in 10 years, yet works great!