mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-20 15:12:19 +00:00
Updates code to be 510 compile compatible. Also introduces the new updates to the GOON processScheduler, which should make for better gameplay and less lag. Specially on high population.
27 lines
586 B
Plaintext
27 lines
586 B
Plaintext
/datum/controller/process/obj/setup()
|
|
name = "obj"
|
|
schedule_interval = 20 // every 2 seconds
|
|
start_delay = 8
|
|
|
|
/datum/controller/process/obj/started()
|
|
..()
|
|
if(!processing_objects)
|
|
processing_objects = list()
|
|
|
|
/datum/controller/process/obj/doWork()
|
|
for(last_object in processing_objects)
|
|
var/datum/O = last_object
|
|
if(isnull(O.gcDestroyed))
|
|
try
|
|
O:process()
|
|
catch(var/exception/e)
|
|
catchException(e, O)
|
|
SCHECK
|
|
else
|
|
catchBadType(O)
|
|
processing_objects -= O
|
|
|
|
/datum/controller/process/obj/statProcess()
|
|
..()
|
|
stat(null, "[processing_objects.len] objects")
|