Use the latest subtile timestamp
for zoom out processing, instead of the render start time.
This commit is contained in:
parent
63a3e03c24
commit
3f79dea837
1 changed files with 3 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ public abstract class DynmapWorld {
|
||||||
private static final int[] stepseq = { 3, 1, 2, 0 };
|
private static final int[] stepseq = { 3, 1, 2, 0 };
|
||||||
|
|
||||||
private void processZoomFile(MapTypeState mts, MapStorageTile tile, boolean firstVariant) {
|
private void processZoomFile(MapTypeState mts, MapStorageTile tile, boolean firstVariant) {
|
||||||
final long startTimestamp = System.currentTimeMillis();
|
long mostRecentTimestamp = 0;
|
||||||
int step = 1 << tile.zoom;
|
int step = 1 << tile.zoom;
|
||||||
MapStorageTile ztile = tile.getZoomOutTile();
|
MapStorageTile ztile = tile.getZoomOutTile();
|
||||||
int width = 128, height = 128;
|
int width = 128, height = 128;
|
||||||
|
|
@ -155,6 +155,7 @@ public abstract class DynmapWorld {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
MapStorageTile.TileRead tr = tile1.read();
|
MapStorageTile.TileRead tr = tile1.read();
|
||||||
|
mostRecentTimestamp = Math.max(mostRecentTimestamp, tr.lastModified);
|
||||||
if (tr != null) {
|
if (tr != null) {
|
||||||
BufferedImage im = null;
|
BufferedImage im = null;
|
||||||
try {
|
try {
|
||||||
|
|
@ -239,7 +240,7 @@ public abstract class DynmapWorld {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else /* if (!ztile.matchesHashCode(crc)) */ {
|
else /* if (!ztile.matchesHashCode(crc)) */ {
|
||||||
ztile.write(crc, zIm, startTimestamp);
|
ztile.write(crc, zIm, mostRecentTimestamp);
|
||||||
MapManager.mapman.pushUpdate(this, new Client.Tile(ztile.getURI()));
|
MapManager.mapman.pushUpdate(this, new Client.Tile(ztile.getURI()));
|
||||||
enqueueZoomOutUpdate(ztile);
|
enqueueZoomOutUpdate(ztile);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue