slashmax / AAMirror

506 stars 181 forks source link

Screen refresh slow and inconsistent when head unit screen not touched #55

Open Bikkies opened 5 years ago

Bikkies commented 5 years ago

While using AAMirror, when the head unit screen is not touched, the screen refresh rate slows to some inconsistent juddery rate that looks between 15-20 fps. When you put a finger on the head unit screen it speeds back up to what looks like a smooth 60 fps, video playback becomes smooth and delays disappear.

The screen stays smooth until ~2-3 seconds after you lift a finger off the screen, then it returns to the inconsistent juddery frame rate.

Not sure if this is something that can be worked around or if it's enforced by Android Auto for apps launched from the little speedo menu? Using Google Maps from within Android Auto does not show the same behavior, looking at the little pulsating dot on your position, it looks like it stays silky smooth the whole time, so that makes me think that it might be possible to keep the update fast while the screen isn't touched.

A couple of other things: the screen on the phone (Google Pixel) stays smooth the whole time, only the mirror slows down, and touching the phone screen does not speed up the mirror, it's only affected when touching the head unit screen.