What others are claiming effectively amounts to saying that the Macbook needs to disconnect from your network, scan for access points, and then reconnect to the network. Which would certainly cause latency issues, that much is true, but that's surely not the kind of scanning that is actually being done here? Why would a scan for access points be necessary?
It puts the radio into a different mode to listen for nearby devices, whether to talk to them or to use them as landmarks for location sensing. This requires scanning radio channels, not just continuing to listen to the channel where you expect to receive further packets from an associated access point.
There might very well be latency issues involved with the WiFi radio scan modes on Macs, for all I know, but I don't think they could be related to this specific issue with AirPlay?
See https://support.apple.com/guide/deployment/use-airplay-dep91...
"When looking for other devices, an Apple device broadcasts a very small Bluetooth advertisement indicating that it’s looking for peer-to-peer services. When any peer-to-peer-capable device hears this BTLE packet, it creates or joins a peer-to-peer network directly between the devices. The devices concurrently switch between this temporary network and any infrastructure networks they were on before in order to deliver both the AirPlay video stream and provide existing internet service. The temporary network typically operates on Wi-Fi channel 149+1, but depending on the hardware involved, may also include channel 6, or channel 149,80. The devices follow the same frequency use rules on the temporary network as they do with any other Wi-Fi connection to avoid disrupting any existing infrastructure networks that might already be using those channels."
given those rules and wifi 2.4 band having 14, 5GHz band having 190 or more channels. I would say having been able to send things back and fort is still pretty damn good :)
frames may have other phsical properties that need to match. so, too many options and just a physical limitation...