jofomah / osmdroid

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

Optimizations for MyLocationOverlay #369

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The MyLocationOverlay can be optimized to reduce wasted CPU cycles. Two things 
jump out:

 1. We are invalidating the entire maps on every location update. We should only invalidate the little man icon and the accuracy circle (if enabled).
 2. We are calculating coordinates on every draw cycle. We should calculate this once and store the MAX_ZOOM x,y coordinates and shift down to the appropriate zoom level.

This will give us back a very nice slice of CPU!

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

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

Original comment by kurtzm...@gmail.com on 13 Sep 2012 at 9:15