Moved max-chunks-per-second to server.properties, increased to 8

This commit is contained in:
Shoghi Cervantes 2014-02-10 13:28:54 +01:00
parent 7e174eac5a
commit d925640f03
2 changed files with 4 additions and 1 deletions

View File

@ -134,8 +134,12 @@ class ServerAPI{
));
$this->parseProperties();
//Load advanced properties
define("DEBUG", $this->getProperty("debug", 1));
define("ADVANCED_CACHE", $this->getProperty("enable-advanced-cache", false));
define("MAX_CHUNK_RATE", 20 / $this->getProperty("max-chunks-per-second", 8)); //Default rate ~512 kB/s
if($this->getProperty("port") !== false){
$this->setProperty("server-port", $this->getProperty("port"));
$this->config->remove("port");

View File

@ -31,7 +31,6 @@ define("VIEWER", 3);
//Players
define("MAX_CHUNK_RATE", 20 / arg("max-chunks-per-second", 4)); //Default rate ~256 kB/s
define("PLAYER_MAX_QUEUE", 1024);
define("PLAYER_SURVIVAL_SLOTS", 36);