Skip to content

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

@PRODIEPI0XD

Description

@PRODIEPI0XD

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:
GlacieTeam/ProtocolLib#2
GlacieTeam/ProtocolLib#4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions