mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Add progressloginterval setting - control how often progress messages done
This commit is contained in:
parent
9b191bb3ab
commit
c327b98b97
@ -44,6 +44,7 @@ public class MapManager {
|
|||||||
private long timeslice_int = 0; /* In milliseconds */
|
private long timeslice_int = 0; /* In milliseconds */
|
||||||
private int max_chunk_loads_per_tick = DEFAULT_CHUNKS_PER_TICK;
|
private int max_chunk_loads_per_tick = DEFAULT_CHUNKS_PER_TICK;
|
||||||
private int parallelrendercnt = 0;
|
private int parallelrendercnt = 0;
|
||||||
|
private int progressinterval = 100;
|
||||||
|
|
||||||
private int zoomout_period = DEFAULT_ZOOMOUT_PERIOD; /* Zoom-out tile processing period, in seconds */
|
private int zoomout_period = DEFAULT_ZOOMOUT_PERIOD; /* Zoom-out tile processing period, in seconds */
|
||||||
/* Which fullrenders are active */
|
/* Which fullrenders are active */
|
||||||
@ -414,7 +415,7 @@ public class MapManager {
|
|||||||
if(!cache.isEmpty()) {
|
if(!cache.isEmpty()) {
|
||||||
rendercnt++;
|
rendercnt++;
|
||||||
timeaccum += System.currentTimeMillis() - tstart;
|
timeaccum += System.currentTimeMillis() - tstart;
|
||||||
if((rendercnt % 100) == 0) {
|
if((rendercnt % progressinterval) == 0) {
|
||||||
double msecpertile = (double)timeaccum / (double)rendercnt / (double)activemaplist.size();
|
double msecpertile = (double)timeaccum / (double)rendercnt / (double)activemaplist.size();
|
||||||
if(activemaplist.size() > 1)
|
if(activemaplist.size() > 1)
|
||||||
sender.sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
sender.sendMessage(rendertype + " of maps [" + activemaps + "] of '" +
|
||||||
@ -487,6 +488,8 @@ public class MapManager {
|
|||||||
hdmapman.loadHDLightings(plugin);
|
hdmapman.loadHDLightings(plugin);
|
||||||
sscache = new SnapshotCache(configuration.getInteger("snapshotcachesize", 500));
|
sscache = new SnapshotCache(configuration.getInteger("snapshotcachesize", 500));
|
||||||
parallelrendercnt = configuration.getInteger("parallelrendercnt", 0);
|
parallelrendercnt = configuration.getInteger("parallelrendercnt", 0);
|
||||||
|
progressinterval = configuration.getInteger("progressloginterval", 100);
|
||||||
|
if(progressinterval < 100) progressinterval = 100;
|
||||||
|
|
||||||
this.tileQueue = new AsynchronousQueue<MapTile>(
|
this.tileQueue = new AsynchronousQueue<MapTile>(
|
||||||
new Handler<MapTile>() {
|
new Handler<MapTile>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user