PATRIK27 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Flickering when maps redraw. #207

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>What is the expected output? What do you see instead?

I expect to smoth map scrolling, but instead sometimes 1 time in 5 - 10 sec i 
got flickering that are visible on screen, looks like drawing without double 
bufffering in games. It's more often happens at high zoom level.

Also some times there are black horisontal lines aroud tiles when zooming 
in/out.

Android 2.3 on Nexus One

Original issue reported on code.google.com by Alexey_...@afrogleap.com on 27 Apr 2011 at 12:58

GoogleCodeExporter commented 8 years ago
I have the same issue with my Android 2.3 nexus one. 

Original comment by huchet.j...@gmail.com on 29 Apr 2011 at 6:17

GoogleCodeExporter commented 8 years ago
Might be related to issue 226.

Original comment by kurtzm...@gmail.com on 3 Jun 2011 at 9:16

GoogleCodeExporter commented 8 years ago
I've started to see this problem after I upgraded my phone from 2.2.0 (froyo) 
to 2.3.4 (gingerbread).

For me the tiles appear to flicker and - very occasionally - a whole title 
shows the grey background when dragging.

It happens in the OpenStreetMapViewer-3.0.5.apk on the OSMdroid download page.

Original comment by netwol...@gmail.com on 17 Sep 2011 at 8:48

GoogleCodeExporter commented 8 years ago
I guess maybe problem related to new window/bitmap format that was changed 
since gingerbeard

http://www.curious-creature.org/2010/12/08/bitmap-quality-banding-and-dithering/

Original comment by Alexey.K...@gmail.com on 18 Oct 2011 at 2:05

GoogleCodeExporter commented 8 years ago

Original comment by neilboyd on 12 Nov 2011 at 5:58

GoogleCodeExporter commented 8 years ago
When the download provider finishes downloading a tile it puts it into the 
cache.
The problem is that the network could be choppy and we get a bunch of download 
completions for tiles that are not even relevant any more. These get put into 
the cache, forcing out the ones that we're actually using.
The fix would be to make the tile downloader write the tiles to file system, 
but not to cache.

Original comment by neilboyd on 7 Dec 2011 at 8:39

GoogleCodeExporter commented 8 years ago
The attached patch seems to fix the problem I described in my previous comment 
and I think it fixes this issue.

Original comment by neilboyd on 2 Jan 2012 at 10:38

Attachments:

GoogleCodeExporter commented 8 years ago
The patch works for me, at least so far. I did get some very strange issues 
when updating from revision 1010 to the latest, but I'll look for another place 
to post those.

Original comment by DuneL...@gmail.com on 4 Jan 2012 at 1:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1029.

Original comment by neilboyd on 4 Jan 2012 at 3:19