mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user