After I connected my M31 and TV with 5 GHz WiFi connection, there is no lag. So, you need 5 GHz support WiFi router. So, the reason is it's trying cast high quality video stream or it's not using video compression techniques. Whatever it's work well....