Skip to content

Commit

Permalink
Desktop sample: increase memory tile cache, closes #862
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 committed Aug 7, 2016
1 parent 96a4beb commit 62676bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private static MapView createMapView() {
}

private static TileCache createTileCache(int index) {
TileCache firstLevelTileCache = new InMemoryTileCache(128);
TileCache firstLevelTileCache = new InMemoryTileCache(256);
File cacheDirectory = new File(System.getProperty("java.io.tmpdir"), "mapsforge" + index);
TileCache secondLevelTileCache = new FileSystemTileCache(1024, cacheDirectory, GRAPHIC_FACTORY);
return new TwoLevelTileCache(firstLevelTileCache, secondLevelTileCache);
Expand Down

0 comments on commit 62676bd

Please sign in to comment.