Chunk loads EXTREMELY so slow, im using anvil format for every worlds i have. And also, every packets got delayed to client before chunk load properly. For example, player send a message and console read it as well. But, player did not receive their messages. Its also happened with sprinting / sneaking, eating / exhausting, etc. I have 20 TPS average anyway. Its so strange for me, i'm using latest commit on 25 January. Any advice, recommendation, or help are very welcome! Thanks.
Yes. This commit are better than latest one. I dont know what happen with network or something. I always tracking and monitoring my server's resources usage (such: network connection, bandwidth, CPU, and RAM). There is no alert about overloading or something that affect to performance. And i hope this pull will solve everything. EDIT: When every packet got delayed, my console spammed by notice message "{player} moved too fast!" and debug message "Old position: ...". Then, after chunk loaded, player will receive everything properly and that notice message are stopped. Problems: * When delay happened, all packet seems fine with server. For example, A is a player and assume that every worlds has Anvil format: 1. Teleporting to another world or location. A teleported to world that has DEFAULT generator from FLAT world (its rarely happen if they teleport to FLAT generator). A starting delayed for a while (he did'nt see any chunks for 5~10 second, its not constant so i can't tell exactly). Then, chunks loaded very slowly. 2. Player got delayed, but others don't. While A got delayed, A send a chat "Hello world", and other player (for example: B) receive a message from A ("Hello world") without delay, but A still did'nt receive any message. I could put hunger as example too: Before A teleported to somewhere, he has Full (20) hunger bar. After he took a long delay, his hunger will decreased to (2~6, depends how long his delay). 3. Everything back to normal. After A see all chunk loaded near him, now he can do everything normally. 4. Delay happen again. A tried to explore the worlds, he move so far. When chunk load, he got delayed again. Thats what happen to my server @dktapps
If it was related to client's connection, they has ping 20~110 (and i thought it's not bad for Minecraft Server)
UPDATE: I can confirm that 1e673600485c87c9e31b18ba32fef8fe0b327e2e better than newest commit. (tried with same settings, same device, and run without or with plugins.)
In pocketmine.yml there is now a config option "max-mtu-size" under "network". By default it's 1492. Please try lowering it and see if the issue still occurs.
Thanks for that, i tried to set it to 1308 *i did some test with ping to determine my optimal MTU size*. I'll wait my client's report after this update. Anyway, could i use all of my CPU to work to load chunks? I mean, how to optimize chunks performance with my CPU. (Async-workers has good value right now).