yy20111011659 / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Serious performance problem in RMTileImageSet addTiles:ToDisplayIn: loading unnecessary zooms #126

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When my application initializes, there is a very long pause, because it's add 
a whole bunch of tiles at zooms that it doesn't need. 

RMTileImageSet addTiles:ToDisplayIn: has a for (;;) loop that loops from 
the zoom level passed in, down to [tileSource minZoom], adding tiles at 
zooms that are not needed.

I can't figure out why it's doing this, but it really slows down my 
application. 
I fixed the code so that addTiles only adds the tiles at the current zoom, 
and it's much faster, and it works just fine. 

What is the reason it's doing this? Is there a way to disable it besides 
hacking the code? The performance is horrible because of this behavior, 
which seems totally unnecessary. 

Original issue reported on code.google.com by simhac...@gmail.com on 30 Dec 2009 at 5:38