npc-lib icon indicating copy to clipboard operation
npc-lib copied to clipboard

Feature: Optimize handleMove

Open adabugra opened this issue 10 months ago • 4 comments

This PR optimizes the handleMove method in the BukkitActionController class by introducing chunk caching and movement tick skipping. These enhancements reduce unnecessary calculations and improves performance.

Tests (~550 online/real players):

Before: image

After: image

adabugra avatar Feb 18 '25 21:02 adabugra

Excellent, I too was about to start looking into it as well, as it was often the laggiest method running for me too.

Cryptite avatar Feb 18 '25 21:02 Cryptite

Any updates on this one?

Cryptite avatar Apr 04 '25 12:04 Cryptite

@adabugra are you still working on this? else I (or someone else) could maybe take this over

derklaro avatar Jun 16 '25 17:06 derklaro

@adabugra are you still working on this? else I (or someone else) could maybe take this over

I will look into this when I have time. What changes are needed?

adabugra avatar Jun 16 '25 19:06 adabugra