Images from security and medical HUDs (glasses/borg/odysseus) will now be garbage collected instead of being manually deleted.

Because of this, borgs will no longer save all the images on their client, avoiding the display of thousands of HUD images on a single mob, lagging or crashing the player's client.

If I'm right, this will reduce 90% of the del() lag. Cross your fingers!

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5773 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
aranclanos@hotmail.com
2013-02-24 16:01:46 +00:00
parent 3dabcc8df6
commit e112fd4c27
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -932,7 +932,7 @@
for(var/image/hud in client.images)
if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe
del(hud)
client.images.Remove(hud)
client.screen.Remove(global_hud.blurry, global_hud.druggy, global_hud.vimpaired, global_hud.darkMask)
@@ -161,6 +161,10 @@
src.see_in_dark = 8
src.see_invisible = SEE_INVISIBLE_LEVEL_TWO
for(var/image/hud in client.images)
if(copytext(hud.icon_state,1,4) == "hud") //ugly, but icon comparison is worse, I believe
client.images.Remove(hud)
var/obj/item/borg/sight/hud/hud = (locate(/obj/item/borg/sight/hud) in src)
if(hud && hud.hud) hud.hud.process_hud(src)