mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 15:21:29 +00:00
- 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.
16 lines
507 B
Plaintext
16 lines
507 B
Plaintext
/datum/controller/process/garbage_collector/setup()
|
|
name = "garbage"
|
|
schedule_interval = 10
|
|
start_delay = 3
|
|
|
|
garbageCollector = src
|
|
|
|
/datum/controller/process/garbage_collector/doWork()
|
|
// Garbage collection code can be found in code\modules\garbage collection\garbage_collector.dm
|
|
processGarbage()
|
|
|
|
/datum/controller/process/garbage_collector/statProcess()
|
|
..()
|
|
stat(null, "[del_everything ? "Off" : "On"], [queue.len] queued")
|
|
stat(null, "Dels: [dels_count], [soft_dels] soft, [hard_dels] hard")
|