RobertDeveloper / RMaps.0.9.x

Automatically exported from code.google.com/p/robertprojects
43 stars 27 forks source link

Track display performance improvement suggestion #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I developed my own GPS navigation application with track save/load
functions last year, I found if there are 2000+ track segment overlays
displayed in the view, the performance will be very bad especially during
panning. I use 2 tricks to improve the performance drastically:

1. Dynamically calculate the visible area and display only tracks in that
area. Using extra area range(like 2x) is the good way to display all
visible track when user pan the map.

2. If number of track overlays exceed 500, regenerated the track and skip
the intermediate track points to ensure the performance. After several
tests, I found 500~800 segments is sufficient to display a smooth track.

Hope it helps.

Original issue reported on code.google.com by aca...@gmail.com on 7 May 2010 at 11:51