PlayerListManager unnecessarily eats up CPU time

Tsunami Game is also seeing this. Whenever anyone has a stat change (such as points, which update frequently), it causes thousands of indexes to Player.TeamColor and Team.TeamColor. There are only 3 teams with up to 30 players.

Edit: This one is especially annoying - I can only reproduce the issue in live servers. A live server of 8 players can have frame times of >30ms due to these thousands of indexes because of this while 12 clients in Studio, locking my 8-core CPU to 100%, shows a couple dozen of these TeamColor indexes.

Edit 2: Issue observed in a live server with only 5 3 2 players.

Edit 3: Issue observed in a live server, eventually getting down to only me.

9 Likes