osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Android Auto on Sony Xperia 5 IV Android 14 map blinks #19026

Open aprilzeland opened 9 months ago

aprilzeland commented 9 months ago

Description

Hey, Osmand Team.

I used Osmand on Sony Xperia 5 II (Android 12), Sony Xperia 5 III (Android 13) in my Subaru Forester 2019. Both 2d and 3d modes worked good, even smooth.

This week I upgraded my smartphone to Sony Xperia 5 IV with Android 14 (up to date) and today found out that Osmand in my car works not as good as it worked on previous versions.

The problem is not so visible in 2d (it is hard to say if it is present or not) but it definitely exists in 3d. When I move, the map blinks, jumps, looks like it struggles to draw a map fast. Not smooth at all. I set the settings for Osmand app in Android to not to restrict for any cpu or battery resources. Osmand itself has same settings as on my two previous phones.

I attached the video how the problem looks like: https://drive.proton.me/urls/7FM7DCC8HG#6DoETfSh0xHy

Could You please advice me anything to solve this issue?

Thanks in advance.

Steps to reproduce

Take your xperia, open osmand, start navigation to some point in a car profile.

Connect xperia to the car using usb cable.

Tap "Android auto" on the car display, open osmand.

Till this moment everything is fine, the app is ready for the naviagtion.

Start driving for at least 50km/h.

Actual result

The map starts to blink in a disgusting manner when it redraws in motion. See the video in a task description

Expected result

The map is expected to be re-drawed smoothly all the time. As it used to be before on Sony Xperia 5 II and Xperia 5 III (Android 12 and 13)

Your Environment (required)

Subaru Forester 2019 Sony Xperia 5 IV, android 14 - firmware up to date Osmand 4.6.13

aprilzeland commented 9 months ago

Hey, I did some changes to the app settings and today it looks like it works. I will try to remember what changes I have changed

aprilzeland commented 9 months ago

Hey. Looks like I found out a magic option to make the map re-draw smooth. When 'Ubicación propia animada' is disabled - everything is ok. When enabled - map lags appear. I was able to reproduce it today.

I am not sure if it is a bug or a feature. Could You please give me any details behind that magic option? At least there is nothing obvious related to Android Auto mode.

yuriiurshuliak commented 9 months ago

Regrettably, after viewing the video you provided, I observed a discrepancy between the video content and your description. Indeed, your observation is accurate – activating the "Animate own position" option generates a seamless map panning effect compared to the My Position icon when in motion. However, it's worth noting that this effect introduces a minor delay of approximately 1 second compared to the ground truth. Consequently, enabling this option has the potential to effectively address a similar issue.