When phone screen is turned off, CarPlay map framerate drops #3735
SamuelBrucksch
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we use a react-native based approach, to also display our app in CarPlay. It works quite well so far, we can reuse the same stuff we use for the actual mobile app.
However I noticed, that a smooth framerate of the map drawn on CarPlay is dependent on phone screen being on or off.
When the phone screen is on, i get my preffered 30fps, but when I turn off the phone screen, the framerate jumps between 17 and 25fps. Also you can see that the map does not move as smooth as before.
When I then turn on the phone screen again, i get stable 30fps again. The app itself does not need to be active, good enough when it is in background, for example if other app is currently active. It really only is related to the screen being locked or not.
I have no idea, where to look for issues, as it seems to be something Mapbox related. When i log the renders of the map component, it looks the same with screen locked or not. So there is no difference there. So my assumption is, that something within Mapbox changes when the phone screen is off.
Does anyone have ideas, on what to look for, to improve the framerate?
We use latest rnmapbox version with latest mapbox (11.9.0).
Beta Was this translation helpful? Give feedback.
All reactions