Hey until today in the morning i get this spammed in the logs and the server lags.
Calling 'OnMaxStackable' on 'StackSizeController v4.1.2' took average 1358msSolved
I agree, the plugin began to create a large delay like two months ago,
I get this error sometimes, my friend on another hosting get freezing every 5 seconds until he deleted the plugin
The problem is the industrial pipes. to much connections, i found the problem with this :
https://github.com/WheteThunger/DebugHookCalls
Hi all.
I do not understand why this thread has been tagged as Solved.
By my side, the plug-in makes the server lagging a lot !
Indeed the Industrialisation uses OnMaxStackable very very very frequently.
And the more the wipe pass... the more players deploy industrialisation systems... the more it lags.
I had to modify the code of OnMaxStackable in order to make it working faster as hell.
I suggest the developer to use Dictionary TryGetValue instead of the "if contains then getvalue" pattern (perf. x 2 approx).
I also suggest to cache the computed stack sizes instead of computing them each time OnMaxStackable is called.
Hopefully he will have time to optimize OnMaxStackable implementation in a further version (as of now 4.1.2).
In the meantime, unfortunately, I do not recommend to use this plug-in.
How did you modify your code ? @WouayNote
Hi @cryptextitan. I am currently trying to submit the modifications to @AnExiledDev on GitHub. I hope the modifications are good enought and that he will accept them. I don't want to publish things without his approval.
Ok then we wait thx @WouayNote
Well... well... well... I have no news from @AnExiledDev...
So, first things first, please consider using this at your own risk.
Do not expect some support from me and I will not take the lead on this plug-in.
If AnExiledDev comes back to me, I will do what he wants me to do. Until that day...
Here is a non official version of the plug-in that aims to enhance its performance hugely:
https://raw.githubusercontent.com/WouayNote/StackSizeController/master/StackSizeController.cs
Finally, please consider using another thing to modify your stacks size since I feel it could be optimized even more.
But well, until that time by my side, I am still using this one. Chears !
Hello, I'm closing the topic concerning my usage of this plug-in.
I no more use this plug-in since I moved to another one.
WouayNote
Hello, I'm closing the topic concerning my usage of this plug-in.
I no more use this plug-in since I moved to another one.
Firstly, thank you for doing this.
Secondly can I ask, what did you move to?
Hi @ChristopherS, I moved to a one I wrote myself.
But you might give a try to Stack Modifier, it seems to work perfectly.
It just modifies the Rust convars which is much more performant.
Locked automatically