[MIRROR] Replace moveToNullspace in decal Destroy() to loc = null -- Saves 0.11s of init time [MDB IGNORE] (#18188)

* Replace moveToNullspace in decal Destroy() to loc = null -- Saves 0.11s of init time (#71706)

This calls Exited(), Entered(), etc etc etc etc, and it is not necessary
for this. Was 119ms, now 9.

* Replace moveToNullspace in decal Destroy() to loc = null -- Saves 0.11s of init time

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-12-24 22:00:39 -08:00
committed by GitHub
co-authored by Mothblocks
parent 3972eaeaab
commit dc2afeb653
+4 -1
View File
@@ -62,5 +62,8 @@
var/turf/T = loc
T.RemoveElement(/datum/element/decal, icon, icon_state, dir, null, null, alpha, color, null, FALSE, null)
#endif
moveToNullspace()
// Intentionally used over moveToNullspace(), which calls doMove(), which fires
// off an enormous amount of procs, signals, etc, that this temporary effect object
// never needs or affects.
loc = null
return QDEL_HINT_QUEUE