"Players needing chunks" tps drop


Hey. My tps is low because of “Players needing chunks”. I don’t know how to fix this.
Here is the timings : https://timings.aikar.co/?id=58d884a88fef4102ab3fc0916fe7cd7d


Lower the server’s view distance. You have it set to 24, which is pretty high. 10 is a good number


Well, i use a custom plugin who dynamically change view distance. I solved this problem by setting the view distance to 4 in config files.
The player.setViewDistance() function allow to bypass it (So players can have 24 chunks of view distance, even when it’s 4 in settings), i don’t know why, “Players Needing Chunks” doesn’t reduce my tps now.