Open SmallJoker opened 5 years ago
Fascinating. How are you seeing this? Increased verbosity of client-side log?
Mods which use set_attach:
(plus boats and carts from minetest_game)
I gathered this information by adding some text output to the client's attachment handler.
The mods seem to be OK. They only call the functions on player interactions. One possibility would also be that there are many regular objects that are loaded and unloaded (client-side). The attachment data is sent for them, even if they aren't attached.
But the weird thing here is that "initData"
and "Added"
occur less often than the attachment information (which should be 1:1 if that were the case).
Note to self: take another look at this, it might be important. The game is written well enough that it should be easy to add some extra logging in the attachment handler.
A mod tries to attach or detach objects without parents way too often. Wasted traffic and server execution time.