rksahu1987 / osmdroid

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

Make loading and "scaled zoom" tiles RGB_565 to save memory #368

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Memory is a tight squeeze in osmdroid, so saving space is a good idea. It 
allows for bigger tile caches and more importantly it can cut down on GCs 
(which osmdroid produces a lot of).

So let's change the loading tile and all Bitmaps created by the rescaleCache() 
method from ARGB_8888 (32-bit) to RGB_565 (16-bit no alpha). It will produce 
smaller bitmaps and cause less GCs.

Original issue reported on code.google.com by kurtzm...@gmail.com on 6 Sep 2012 at 6:31

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

Original comment by kurtzm...@gmail.com on 12 Sep 2012 at 8:15

GoogleCodeExporter commented 8 years ago
This revision was reverted by r1341 and issue 452. We no longer use 565 bitmaps.

Original comment by kurtzm...@gmail.com on 1 Oct 2013 at 7:21