A process scheduler thing

Included:
-The process lists use |= instead of += due to the increased stability of the former against double additions.

-Atmospherics machinery is moved under the pipenet processing.

-Modified the atmospherics processes to return 1 when theyve done something, and 0 if they aint done jack shit. Then called scheck() if they return 1, possibly  reducing unnecessary scheck calls while still managing to smooth out the atmospherics processing.

-If a powernet happens to get rebuilt by either powernets or power machinery scheck() is also called
This commit is contained in:
clusterfack
2015-05-06 03:11:55 -05:00
parent beda8e4e49
commit 147c5bd5a7
36 changed files with 107 additions and 103 deletions

View File

@@ -152,9 +152,8 @@
/obj/machinery/atmospherics/pipe/simple/process()
if(!parent) //This should cut back on the overhead calling build_network thousands of times per cycle
build_network()
else
. = PROCESS_KILL
. = ..()
atmos_machines.Remove(src)
/*if(!node1)
parent.mingle_with_turf(loc, volume)
@@ -491,9 +490,8 @@
/obj/machinery/atmospherics/pipe/manifold/process()
if(!parent)
..()
else
. = PROCESS_KILL
. = ..()
atmos_machines.Remove(src)
/*
if(!node1)
parent.mingle_with_turf(loc, 70)
@@ -726,9 +724,8 @@
/obj/machinery/atmospherics/pipe/manifold4w/process()
if(!parent)
..()
else
. = PROCESS_KILL
. = ..()
atmos_machines.Remove(src)
/*
if(!node1)
parent.mingle_with_turf(loc, 70)