mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-06 23:51:43 +00:00
A few more process tweaks
- Removes unused btime globals. - Removes unnecessary multiplication. - Makes the garbage collector run twice as often, but do half as much work. - Makes the garbage collector SCHECK more often when performing hard deletions. - Adds a delay to the garbage collector's start.
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
CRASH("Process [name] hung and was restarted.")
|
||||
|
||||
if (main.getCurrentTickElapsedTime() > main.timeAllowance)
|
||||
sleep(world.tick_lag*1)
|
||||
sleep(world.tick_lag)
|
||||
cpu_defer_count++
|
||||
last_slept = TimeOfHour
|
||||
else
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/datum/controller/process/garbage_collector/setup()
|
||||
name = "garbage"
|
||||
schedule_interval = 20 // every 2 seconds
|
||||
schedule_interval = 10
|
||||
start_delay = 3
|
||||
|
||||
garbageCollector = src
|
||||
|
||||
|
||||
Reference in New Issue
Block a user