Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
NattoCB opened this issue Feb 19, 2024 · 0 comments
Labels
type: suggestion Issue is an idea or request for a new feature

Comments

@NattoCB
Copy link

NattoCB commented Feb 19, 2024

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

@NattoCB NattoCB added the type: suggestion Issue is an idea or request for a new feature label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: suggestion Issue is an idea or request for a new feature
Projects
None yet
Development

No branches or pull requests

2 participants