Performance - MyPlayerCollection.SendDirtyBlockLimits is called too frequently

Viktor Ferenczi shared this bug 7 months ago
Reported – Awaiting fix

Game version: 1.200.032


Method: MyPlayerCollection.SendDirtyBlockLimits


The above method is called too frequently causing excess processing and memory allocations on multiplayer servers.


Syncing block limits instantly may not be important enough to warrant such an extra load. The logic could definitely be optimized here.


In my plugin I've added a quick fix simply reducing the number of calls by 99.5% (allowing one every 3 seconds). This may not be ideal, but helps for now. You would certainly have a better fix than this.


See MyPlayerCollectionPatch in https://github.com/viktor-ferenczi/performance-improvements


Run this test world in DS to reproduce (OneDrive due to its size): https://1drv.ms/u/s!AqEgz8G_d8TSh8wPzLoPp_dQDBRb7g?e=eBhsuv

Replies (1)

photo
2

Hello, Viktor,

thanks for letting us know about this. Issue was reported internally.

Kind Regards

Keen Software House: QA Department

Leave a Comment
 
Attach a file