tgstation/-tg-station — pull request #5908 by tkdrg (2014-11-16 01:47:14+00:00)
Title: Makes data huds passive

Previously, HUDs updated the HUD images for every single mob in view() of a HUD user every single tick.

With this update, all the HUD will do is add all mob HUD images to the client. Image updating is now handled by a series of hooks included in data_hud.dm and called as needed by other procs.

This should make HUDs more responsive and less laggy. This has been somewhat tested, however there are bound to be bugs because it relies on certain procs being called whenever stuff like health or arrest status has changed. I tried to catch 'em all but there's probably some I missed.