This commit is contained in:
Hannes Janetzek 2012-08-08 12:24:27 +02:00
parent 69fe443b30
commit 165221f42a
2 changed files with 8 additions and 1 deletions

View File

@ -382,7 +382,7 @@ public class MapGenerator implements IMapGenerator, IRenderCallback, IMapDatabas
Tile.TILE_SIZE, 0, 0, 0 };
LineLayer ll = mLineLayers.getLayer(Integer.MAX_VALUE, Color.BLACK, false,
true);
ll.addLine(coords, 0, coords.length, 2.0f, false);
ll.addLine(coords, 0, coords.length, 1.5f, false);
}
mCurrentTile.newData = true;

View File

@ -441,6 +441,13 @@ public class MapRenderer implements org.mapsforge.android.IMapRenderer {
updateTileDistances();
// scramble tile draw order, might help to make draw calls independent... just a guess :)
for (int i = 1; i < tiles / 2; i += 2) {
GLMapTile tmp = newTiles.tiles[i];
newTiles.tiles[i] = newTiles.tiles[tiles - i];
newTiles.tiles[tiles - i] = tmp;
}
int removes = mTiles.size() - CACHE_TILES;
if (removes > 0)