osmandapp / OsmAnd

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

Rendering is slow when internet is very slow #17136

Closed HikeAndMap closed 1 year ago

HikeAndMap commented 1 year ago

Description

So I have downloaded the offline maps for the Philippines (keep that in mind) there's several possible scenarios:

  1. I have fast internet (fiber, cable, dsl, anything >1Mbps)
  2. I have no internet at all - no reception, airplane mode, etc
  3. I have extremely slow internet. This is the one I notice this bug, and with slow I don't mean 50kbps I mean really like 0.1kbps slow!

Steps to reproduce

You need very slow internet - but there's still some internet! Like 0.1kbps

So scenario one - I can scroll around, zoom-in and out, move over the map - all without any lag at all, at least not noticeable! scenario two - ditto, I can do whatever I want, I notice no lag!

reason is obvious - I have my maps locally on the phone.. it doesn't need internet!

Scenario 3 - so now it's laggy! When I go right or left or north or south on my screen - I don't see the actual map data! I just see a grey background - and after 3, 4, 5, 10, 60 seconds - it shows me the actual map data I would expect.

Now I don't know what's going on here of course - I can only suggest. Maybe despite having map data locally there's some online data from wiki or whatever it wants to download before rendering the map - although also that I have offline!

But regardless of such possible case why this is happening - the fact is the actual map data I have offline and it shouldn't lag on me like that!

IF there's something that OSM wants to download in the background - yet obviously omits if there's no internet at all - it should try to download that over very slow internet but at the same time it should show/render me the local stored data instantly nonetheless!

Thank you for your consideration to fix this bug!

Actual result

Laggy scrolling despite offline data

Expected result

fast scrolling since having offline data on my phon locally

Your Environment

OsmAnd Version: 4.5.0#35904m released 2023-05-07 the full OpenGL version Android/iOS version: 10 Device model: Huawei Mate 20 Pro

Note - my temporary solution right now if I am in an area with very poor internet reception - and OSM takes 30-60 seconds to show me the local stored map data for which it doesn't need internet in the first place - I switch on airplane mode on my phone and then everything is rendered instantly without lag!

But I mean - this is temporarily - obviously it shouldn't be the case a user has to switch on airplane mode to be able to use OSMAnd LOL

scaidermern commented 1 year ago

Can you reproduce scenario 3? It could be the same as #15801. Try to disable the display of OSM notes and check if the problem disappears.

I experience this slow rendering regularly when being outside in hilly terrain with bad mobile connectivity (which isn't that uncommon in Germany...).

Zirochkabila commented 1 year ago

OsmAnd~ 4.5.0#35905m, Released: 2023-05-08

Test was performed at a speed of 0.24 KB/s - the second video shows a delay of 3 and 8 seconds compared to the first video. It can be assumed that when the speed is 0.1, the delay will be greater. Most likely, this delay is caused by the display of other objects (routes, notes, etc.) on the map.

Step to reproduse

0.24 KB/s Fast rendering What need to activate Slow renderring
scaidermern commented 1 year ago

Thanks for the fix!

HikeAndMap commented 1 year ago

awesome - quick resolve of the issue 👍