Added main-hard-limit memory property similar to old memory-limit, use less memory on startup (RakLib)

This commit is contained in:
Shoghi Cervantes
2015-07-11 13:16:39 +02:00
parent 1ebf2476df
commit 0c09361c46
4 changed files with 42 additions and 11 deletions

View File

@ -27,11 +27,15 @@ settings:
memory:
#Global soft memory limit in megabytes. Set to 0 to disable
#This will trigger low-memory-triggers and fire an event to free memory when the usage goes over this
global-limit: 512
global-limit: 0
#Main thread soft memory limit in megabytes. Set to 0 to disable
#This will trigger low-memory-triggers and fire an event to free memory when the usage goes over this
main-limit: 320
main-limit: 0
#Main thread hard memory limit in megabytes. Set to 0 to disable
#This will stop the server when the limit is surpassed
main-hard-limit: 1024
#Period in ticks to check memory (default 1 second)
check-rate: 20