b171508c0f
Entity tracking still asks every client about every entity each tick (vanilla re-checks each pair whenever the player sends a move, so for moving players it does the same), but the check is cheaper: - each entity's position, id, range and chunk are read once a tick into a compact list, not from its EntityState once per client; - each client looks up each of the tick's chunks once in the chunks it holds, not once per entity in it; - an entity with no changes and no client starting to track it skips the loop over the clients. The decisions and the packets are the same, in the same order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>