Functional Storage

Functional Storage

24M Downloads

[1.20.1] Game frozen for few seconds when linking/unlinking a drawer to a controller

SeaLoong opened this issue ยท 2 comments

commented

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.
20240830-193542

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

commented

Define "hundreds"
HmmSuspectGIF

commented

@Buuz135
2024-08-30_20 06 05

About 200-300 drawers? I guess.