Any way to cut the lag in screen mirroring over AirPlay?

mellofello

macrumors 65816
Original poster
Feb 1, 2011
1,244
506
I finally got around to hardwiring everything on my network with gigabit ethernet. It has made no difference with the lag I experience while casting my screen through airplay.

Brand new MBP---->asus Ac router---->Apple TV

All hard wired

Anything that can be done to improve the judder?
 
  • Like
Reactions: Sylviamarkova

wongster

macrumors regular
Sep 27, 2014
146
6
i have no issues or lag when i airplay or mirror. is your mac and apple tv updated to the latest firmware?
 

mellofello

macrumors 65816
Original poster
Feb 1, 2011
1,244
506
All my stuff is up to date.

You can watch video without it being choppy? Doing things like dragging windows is really laggy and unpleasant. I was hoping Ethernet will solve it.

I'm going to order a 30 foot hdmi and just use that.
 

priitv8

macrumors 68040
Jan 13, 2011
3,621
467
Estonia
Watching video and mirroring screen are 2 different processing chores, despite both being named AirPlay.
For mirroring, you could:
1) reduce (match) desktop resolution to "appleTV" size (effectively 1920x1080 or 1280x720 depending on your aTV settings)
2) hope for a faster real-time H.264 encoder in future Intel CPU-s
 
  • Like
Reactions: Sylviamarkova

wongster

macrumors regular
Sep 27, 2014
146
6
no issue at all. i've had my atv and macbook pro since 2013. i'm tying this while having a video playing on my tv as a extended desktop. my atv is plugged in through ethernet and on wifi for my macbook pro.

how new is your atv? when my friend got a new one, she would have lag also and i told her to get a new one and that fixed the issue.
 
  • Like
Reactions: Sylviamarkova

mellofello

macrumors 65816
Original poster
Feb 1, 2011
1,244
506
Apple TV is from 2012 or so. Not the end of the world, but watching popcorn time, and flash based videos is still a thing for me. I will just plug in the hdmi.
 

Abazigal

macrumors G5
Jul 18, 2011
12,656
10,629
Singapore
I finally got around to hardwiring everything on my network with gigabit ethernet. It has made no difference with the lag I experience while casting my screen through airplay.

Brand new MBP---->asus Ac router---->Apple TV

All hard wired

Anything that can be done to improve the judder?
The quality of airplay mirroring has nothing to do with your internet speed. I can be mirroring content through a router with a 1mbps dongle sticking out of it and quality can still be excellent if the wifi signal is strong enough. Rather, your Apple TV is constantly decoding the compressed signals from your MBP through and from your router, and this doesn't require any internet connection at all.

If you are just watching movies, you may want to try just airplaying the video rather than mirroring everything, which takes up way more resources.

I use an asus router at home with my 2012 ATV and airplay quality has been pretty stable. All I can say is that the issue is either with your laptop or your router. See if you can trouble the issue by either using a different router (a cheap TP-link router can be had for $20?) or mirroring another device like your iPhone or iPad and see if there is any lag streaming videos and stuff.

The next best solution would be to get a 2013 Apple TV. It uses peer-to-peer airplay, which means that it connects to your laptop directly via bluetooth and wifi, completely cutting out your router as the middleman. This should significantly improve performance.
 
  • Like
Reactions: Sylviamarkova

SNKETR

macrumors newbie
Oct 22, 2014
6
0
I have the same issue right now. It lags whether i mirror or extend the display with airplay. I had a standard ATT arris router/modem so i upgraded to the ASUS RT-AC87U. That didn't solve anything. ATV was bought in 2015 MBPr is 2012. Hopefully you can come up with something i can try.
 

Jakeblu

macrumors regular
Feb 20, 2008
162
1
UK
I can't believe this is a hardware issue, I used to mirror content all the time on my macbook air 11in 2012 i5 from XBMC but now on my retina macbook 2014 it is unwatchable. They must have done something with the OS for that to be the case all the other hardware is the same inc router, Apple TV etc.
 
  • Like
Reactions: Sylviamarkova

Sylviamarkova

macrumors newbie
Sep 3, 2015
2
0
California
Hi everyone,
As per now,am not facing any issue over Airplay.But sometimes the lagging problem occurs when i mirror my screen to a Projector. Try it in a corporate wifi rather than your home router,for testing purpose.
You can also upgrade your mac/Apple TV to the latest Firmware.

I often give presentations at diff. environments and for me it was very essential to
have perfect device.You can have look on Prijector,hope it can solve all
your issues. I am totally satisfied with this device. Have a good day
 
Last edited:

firewood

macrumors 604
Jul 29, 2003
7,754
1,013
Silicon Valley
Unless Apple completely changes their graphics and Airplay architecture, there will always be several frames (16 mS each) of lag. Apple's A-series chips use (double or triple) buffered tile-based deferred rendering GPUs. That means that there will be about 2 frames of lag both on the i-device and repeated on the ATV. Then Airplay uses compressed data transmissions. So that will add the time to compress and decompress images to the total lag. So you get the sum of 5 lags, initial deferred-render, compress, transmit, decompress, ATV deferred-render, display time. The compression and decompression appears to be done using custom accelerators inside the chips, but even if that and the transmission time are close to zero, the double or triple buffered GPUs on both the i-device and the ATV will add a few frame times of lag.
 

960design

macrumors 68030
Apr 17, 2012
2,966
924
Destin, FL
I finally got around to hardwiring everything on my network with gigabit ethernet. It has made no difference with the lag I experience while casting my screen through airplay.

Brand new MBP---->asus Ac router---->Apple TV

All hard wired

Anything that can be done to improve the judder?
Try taking your router out of the loop.
MBPr > System Preferences > Displays > AirDisplay > Select your AppleTV
 

priitv8

macrumors 68040
Jan 13, 2011
3,621
467
Estonia
Try taking your router out of the loop.
MBPr > System Preferences > Displays > AirDisplay > Select your AppleTV
Are you sure, this has any effect? AFAIK, this selection will just pick a AirDisplay, but the traffic will still go over your wireless infrastructure. Which normally is your wireless access point, connected to your local LAN segment. You may call it router, if you like.
 

Max E Verde

macrumors regular
Jan 12, 2005
211
32
New Jersey
I have had this issue with AirPlay Mirroring/Dual Display on all my Macs and iOS devices since I had a 2nd gen Apple TV, but very recently since I upgraded to macOS 10.12.1/iOS 10.1/tvOS 10.1 everything has been going perfectly. Been testing it extensively recently and hope it has been fixed for good.

Edit: I honestly just realized that I had tvOS 10.1 beta on my Apple TV. I assumed that my developer account expiring would prevent it from installing, but I still had the profile on my Apple TV. SO it could be tvOS 10.1 that fixes this.
 
Last edited:

TruBleu

macrumors regular
Sep 20, 2014
224
195
The Hague, Netherlands
THANK YOU! Man, I've been searching for a solution for a long time and gave up. This is a game changer for me haha thank you again for posting this! This should be pinned for easier find!
You're welcome. Yeah, I am surprised at how many people have found this useful and quite very glad because when I came across the problem, it wasn't easy for me to find this solution after trying several permutations and combinations myself.
 
  • Like
Reactions: Sweener88
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.