Traveler's Compass

Traveler's Compass

534k Downloads

Server lag with high player count

SuperKnux opened this issue ยท 3 comments

commented

Minecraft Version: 1.20.1
Traveler'sCompass Version: 3.0.4

image

The server receives heavy TPS lag relating to the compass mod, relating to the image I posted.

commented

Since the compass scans every block around, having a large search radius can cause lag, especially when multiple players are using it. You can limit the search radius for containers and blocks in the config file (Searching for entities shouldn't cause lags.)
That should help with the lags.

commented

Noting that this is without anyone even having the compass yet.
Why is the mod doing all this calculation when the mod's compass isn't even being used right now?

commented

Noting that this is without anyone even having the compass yet. Why is the mod doing all this calculation when the mod's compass isn't even being used right now?

The compass only performs calculations if it is in the player's inventory, is not paused, is not empty, and at least one search mode is selected.
Otherwise it should not work