dont prefetch grandparent tiles
This commit is contained in:
parent
b39259621a
commit
c62070a33e
@ -256,7 +256,7 @@ public class TileManager {
|
|||||||
|
|
||||||
mUpdateSerial++;
|
mUpdateSerial++;
|
||||||
}
|
}
|
||||||
Log.d(TAG, newCnt + " << " + Arrays.deepToString(mCurrentTiles.tiles));
|
//Log.d(TAG, newCnt + " << " + Arrays.deepToString(mCurrentTiles.tiles));
|
||||||
// request rendering as tiles changed
|
// request rendering as tiles changed
|
||||||
mMapView.render();
|
mMapView.render();
|
||||||
}
|
}
|
||||||
@ -378,21 +378,21 @@ public class TileManager {
|
|||||||
mJobs.add(p);
|
mJobs.add(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zoomLevel > 3) {
|
// if (zoomLevel > 3) {
|
||||||
// prefetch grand parent
|
// // prefetch grand parent
|
||||||
p = tile.rel.parent.parent.item;
|
// p = tile.rel.parent.parent.item;
|
||||||
add = false;
|
// add = false;
|
||||||
if (p == null) {
|
// if (p == null) {
|
||||||
p = mIndex.create(x >> 2, y >> 2, zoomLevel - 2);
|
// p = mIndex.create(x >> 2, y >> 2, zoomLevel - 2);
|
||||||
addToCache(p);
|
// addToCache(p);
|
||||||
add = true;
|
// add = true;
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (add || !p.isActive()) {
|
// if (add || !p.isActive()) {
|
||||||
p.state = STATE_LOADING;
|
// p.state = STATE_LOADING;
|
||||||
mJobs.add(p);
|
// mJobs.add(p);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
return tile;
|
return tile;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user