Create

Create

86M Downloads

Is there able to use Octree to optimise ContraptionCollider.getPotentiallyCollidedShapes?

NattoCB opened this issue ยท 0 comments

commented

Describe the Suggestion

a player built one stone-machine for auto-gen cobblestones
then it lead to 200 mspt, and 9 tps on the server
during the stacktrace profiling, I found the main calculations were located at the method of ContraptionCollider.getPotentiallyCollidedShapes()

getPotentiallyCollidedShapes(world, contraption, localBB.expandTowards(motionCopy));

so just an idea that can this method be optimised to the way with using Octree? Is it easy to accomplish ?

Screenshots and Videos

91d0c006b393a80fc619f2612f89f31f
b81eca141149fa0e4d70b84f8126637b