So, I have been trying to optimize my giant movable islands for 2nd day now.
My islands for testing have around 3.5k parts (Real ones can have 30k).
Main performance tanker was moving ONLY Island’s root part without moving all other parts. I have fixed this with making 1 extra root part, which is welded to main root part, which is welded to entire island assembly.
BUT HERE CAMES THE STRANGE THING:
When I move Second root part (that extra one), Weld and WeldConstraint has shown ABSOLUTELY 2 DIFFIRENT RESULTS:
WeldConstraintdropped performance to 30 PUPS (physics updates per second)Weldnot dropped performance at all - 60 PUPS
Tests above cover 2 scenarios - if entire island assembly will move, and won’t move. Performance results was the similar in both cases - exception was the performance loss - when entire assembly moved it was only 3 PUPS.
And I thought that complete replacement of all WeldConstraint with Weld will give me even better result! I was wrong at this part - no improvements occurred when I did that.
As result, I can say that there’s some overhead on WeldConstraint occurring, especially when assembly begins to move, or when assembly’s part wants to move without moving all other parts in assembly.
But why?