Added timeslicing to configuration

This commit is contained in:
Mike Primm 2011-05-08 23:12:58 -05:00 committed by FrozenCow
parent 6c708d1b3a
commit 88db6445f9
2 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,12 @@ jsonfile: false
# How often the json file gets written to(in seconds)
jsonfile-interval: 1
# Use timesliced fullrender - takes a bit longer, but much more polite for server
timeslicerender: true
# Period between tile renders for timesliced fullrender, in seconds
timesliceinterval: 0.5
# The maptypes Dynmap will use to render.
worlds:
- name: world

View File

@ -62,7 +62,7 @@ public class MapManager {
if (bukkitWorld != null)
activateWorld(bukkitWorld);
}
do_timesliced_render = configuration.getBoolean("timeslicerender", false);
do_timesliced_render = configuration.getBoolean("timeslicerender", true);
timeslice_interval = configuration.getDouble("timesliceinterval", 0.5);
scheduler = plugin.getServer().getScheduler();