So I have the PreDrawHalos hook loop through all the players, and depending on their team / class / whatever they are grouped into tables and are drawn with different colored halos.
The problem is, this leads to 3 halo.Add calls, and this lags down the game.
If I remove two of them, it’s fine, but the more I add back the laggier it is, even if the players in the table are not visible. So I tried if v:Visible() == true to see if they are actually visible, but that’s only severside… oops. But that could be just what I need to optimize it .