SIGN IN SIGN UP

feat: Optimize ServerWaypointManager when locator bar is disabled

The waypoint system  iterates over each player for running waypoint calculations. This, most notably, is done on setPosRaw which is executed twice for each player (one for non players).
This results in every time a player moves, it iterates over each player twice.

So instead, we cache the game rule and instead use this to prevent iterating over all the players and avoid the redundant connection logic checks.

This performance issue is most noticeable with many players on the same level.
O
Owen1212055 committed
7e34fba07666e93a4dd066d97b6373a18eb0f570
Parent: 9d2db14
Committed by Nassim Jahnke <nassim@njahnke.dev> on 4/10/2026, 12:39:02 PM