I found just disabling these kind of Wi-Fi direct / local sharing features on macOS solved some latency I was seeing during online games. For example: Universal Control when enabled would cause the connection to choke for a few seconds when waking my iPad nearby.