removes a bunch of unneeded spawns

spawns have a high overhead.

I only went for easy targets, almost every spawn could be removed with a few subsystems in place to handle delays or cooldowns
This commit is contained in:
MrStonedOne
2016-01-02 18:23:02 -08:00
parent cfc6bb6208
commit b50e8d2a63
47 changed files with 448 additions and 468 deletions
+6 -5
View File
@@ -93,14 +93,11 @@
for(var/datum/d in objs)
for(var/v in call_list)
// To stop any procs which sleep from executing slowly.
if(d)
if(hascall(d, v))
spawn() call(d, v)(arglist(args_list)) // Spawn in case the function sleeps.
SDQL_callproc(d, v, args_list)
if("delete")
for(var/datum/d in objs)
del d
qdel(d)
if("select")
var/text = ""
@@ -147,6 +144,10 @@
/proc/SDQL_callproc(thing, procname, args_list)
set waitfor = 0
if(hascall(thing, procname))
call(thing, procname)(arglist(args_list)) // Spawn in case the function sleeps.
/proc/SDQL_parse(list/query_list)
var/datum/SDQL_parser/parser = new()