Add tiles-rendered-at-once setting, control update tile concurrency
This commit is contained in:
parent
9bdf13e460
commit
fd887b47b4
3 changed files with 6 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ public class AsynchronousQueue<T> {
|
|||
this.dequeueTime = dequeueTime;
|
||||
this.accelDequeueTime = accelDequeueTime;
|
||||
this.accelDequeueThresh = accelDequeueThresh;
|
||||
if(pendinglimit < 1) pendinglimit = 1;
|
||||
this.pendinglimit = pendinglimit;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -683,7 +683,8 @@ public class MapManager {
|
|||
},
|
||||
(int) (configuration.getDouble("renderinterval", 0.5) * 1000),
|
||||
configuration.getInteger("renderacceleratethreshold", 30),
|
||||
(int)(configuration.getDouble("renderaccelerateinterval", 0.2) * 1000), (Runtime.getRuntime().availableProcessors()+1)/2);
|
||||
(int)(configuration.getDouble("renderaccelerateinterval", 0.2) * 1000),
|
||||
configuration.getInteger("tiles-rendered-at-once", (Runtime.getRuntime().availableProcessors()+1)/2));
|
||||
|
||||
/* On dedicated thread, so default to no delays */
|
||||
timeslice_int = (long)(configuration.getDouble("timesliceinterval", 0.0) * 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue