LeviOptimize icon indicating copy to clipboard operation
LeviOptimize copied to clipboard

[Bug]: The server freezes when a player enters or switches to spectator mode

Open PRODIEPI0XD opened this issue 7 months ago • 2 comments

Describe the bug

In the new version of the plugin, the server still freezes for 1-2 seconds when a player logs in. https://youtu.be/m6o44d2ZyPo?si=GR5ip7dpqjtz1cUU

Also, when switching to spectator mode, the game may freeze. https://youtu.be/ZYywXDst5yA?si=7IuPtqdeZWaYEguD

To Reproduce

Try to put a command block that constantly spawns any moving object and after the player enters it should hang for 1-2 seconds Example: summon arrow ~~10~ kill @e [type=arrow,r=2]

Try switching the player to spectator mode at distant coordinates

Expected behavior

So that the world no longer lags when a player enters a server or switches to spectator mode.

Screenshots

https://youtu.be/m6o44d2ZyPo?si=GR5ip7dpqjtz1cUU https://youtu.be/ZYywXDst5yA?si=7IuPtqdeZWaYEguD

Platform

Windows 11

BDS Version

1.21.84

LeviLamina Version

1.3.1

Version

0.7.0

Additional context

I have already discussed this bug here: https://github.com/GlacieTeam/ProtocolLib/issues/2 https://github.com/GlacieTeam/ProtocolLib/issues/4

PRODIEPI0XD avatar Jun 24 '25 01:06 PRODIEPI0XD