[Optimize] Add options to reduce unnecessary packets#675
[Optimize] Add options to reduce unnecessary packets#675VeVeVeVel wants to merge 3 commits intoWinds-Studio:ver/1.21.11from
Conversation
leaf-server/minecraft-patches/features/0302-Filter-ClientboundSetEntityMotionPacket.patch
Show resolved
Hide resolved
DescriptionThis PR adds the About Disable Useless Particles:
As noted by the original developer of this patch:
By disabling this unneeded server-side logic, we can effectively save network bandwidth, all while maintaining the exact same visual experience for players. Credits
|
Description
This PR applies an optimization patch from the Canvas project to Leaf. It introduces a rough filter for
ClientboundSetEntityMotionPacket, which can reduce bandwidth usage by up to 60%.https://github.com/CraftCanvasMC/Canvas/blob/ver/1.21.11/canvas-server/minecraft-patches/sources/net/minecraft/server/level/ServerEntity.java.patch
While entirely disabling this packet causes major desync issues, this patch carefully filters the packets while retaining them for specific entities that rely on them for smooth visual gameplay.
Implementation Details
The packet is filtered out by default when the
ReduceUselessPackets.filterClientboundSetEntityMotionPacketconfig is enabled, except for the following entities:flag1).Credits