Thread: [SailfishOS] Mapbox GL Native QML plugin
View Single Post
Posts: 55 | Thanked: 209 times | Joined on Apr 2017 @ Germany
#62
I think I nailed the "during workout" problem.
The app calls the update function once every second. Normally this is no problem because the map is shown and the track is directly rendered.
But if the app is in background (phone is in standby), the update function is still called every second. And then when the app comes back to focus, the map plugin needs to render thousands of track points in a very short period of time.
This is all my fault. It does not make sense and is very unclean to do anything with the map if it's not viewed at all.
So I will modify the app so that only if the map is shown and active, things are done (update, center on current position, draw map icons).
 

The Following 2 Users Say Thank You to jdrescher For This Useful Post: