[1.20.1] Game frozen for few seconds when linking/unlinking a drawer to a controller
SeaLoong opened this issue ยท 2 comments
Functional Storage Version: 1.20.1-1.2.10
Titanium Version: 3.8.32
I want to link a new drawer to my controller which has been connected with hundreds of drawers. But game is froze for a few seconds each time I try do it. And it only happen on client-side, the server-side is normal. (I mean, not cause server tps down rapidly.)
There is spark profiler report snapshot.
I see the source code, rebuildShapes
cost too much time, can you optimize it? or is there other solution?
rebuildShapes method in source code
Also, I find the same situation when a LinkingTool in my hand for a while.
the reason in source code
About 200-300 drawers? I guess.