tweaks
This commit is contained in:
parent
69fe443b30
commit
165221f42a
@ -382,7 +382,7 @@ public class MapGenerator implements IMapGenerator, IRenderCallback, IMapDatabas
|
|||||||
Tile.TILE_SIZE, 0, 0, 0 };
|
Tile.TILE_SIZE, 0, 0, 0 };
|
||||||
LineLayer ll = mLineLayers.getLayer(Integer.MAX_VALUE, Color.BLACK, false,
|
LineLayer ll = mLineLayers.getLayer(Integer.MAX_VALUE, Color.BLACK, false,
|
||||||
true);
|
true);
|
||||||
ll.addLine(coords, 0, coords.length, 2.0f, false);
|
ll.addLine(coords, 0, coords.length, 1.5f, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
mCurrentTile.newData = true;
|
mCurrentTile.newData = true;
|
||||||
|
|||||||
@ -441,6 +441,13 @@ public class MapRenderer implements org.mapsforge.android.IMapRenderer {
|
|||||||
|
|
||||||
updateTileDistances();
|
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;
|
int removes = mTiles.size() - CACHE_TILES;
|
||||||
|
|
||||||
if (removes > 0)
|
if (removes > 0)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user