Poor performance on macOS? Try this

Note: This may only apply to Apple Silicon (M1-3). It may also be fixed by Apple at some point, so keep an eye out on their patch notes.

If you suffer from stuttery/choppy audio while streaming using Moonlight, and get stuttering graphics or poor mouse pointer behavior, I may have a nice fix for you.

I learned about the issue with Apple Wireless Direct Link (AWDL, which makes AirPlay and AirDrop possible) causing issues with WiFi connection quality and speed earlier today. If you go to terminal and enter:

sudo ifconfig awdl0 down

Then enter your password and hit enter. Note, turning this off will cause some services on your laptop to not function. Now, you should find that your issues have cleared up.

Unfortunately, your Mac will eventually turn this back on all by itself, so having to exit your game to re-enter it is a pain. Fortunately, there's a fix. Per this thread, if you follow the steps u/chalovak outlines, this command will be issued whenever you launch Moonlight, kept on, and disabled when you close Moonlight. You just have to make one change: Replace all instances of "Shadow PC" with "Moonlight".

I encourage you to read it carefully and follow everything step by step, exactly. If you skim or aren't paying attention this may not work. But it is working just great for me.

Remember, you're going to use the "Application" you created in order to launch Moonlight from now on, not the Moonlight icon. Cool? Okay, get playing!

IMPORTANT EDIT: While this script is active (so, while Moonlight Launcher is running), services like iPhone Mirroring and Sidecar will not work, or will not work properly. You have to quit the script first.