Update SSOverlays (ported from Baystation) (#19051)

Our SSOverlays system is outdated, and is likely the cause of many of
the issues seen in #18895. It has also been linked to a massive server
performance decrease.

This brings an updated system from Baystation, hopefully with speed
increases.

Should be testmerged, ideally with #18895.

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
This commit is contained in:
Cody Brittain
2024-05-01 03:46:27 -04:00
committed by GitHub
parent 405a05b819
commit 9983fca311
350 changed files with 1626 additions and 1498 deletions
+2 -2
View File
@@ -659,8 +659,8 @@ var/list/asset_datums = list()
Insert(imgid, I, forced=I)
else
item.update_icon()
if(item.overlay_queued)
item.compile_overlays()
if(item.atom_flags & ATOM_AWAITING_OVERLAY_UPDATE)
item.UpdateOverlays()
if(item.overlays.len)
I = getFlatIcon(item) // forgive me for my performance sins
Insert(imgid, I, forced=I)