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

Improve pathfinding overhead #9505

Merged
merged 1 commit into from
Oct 21, 2023
Merged

Improve pathfinding overhead #9505

merged 1 commit into from
Oct 21, 2023

Conversation

someaddons
Copy link
Contributor

Changes proposed in this pull request:

  • Introduces a small blockstate cache for repeated lookups during pathfinding when exploring around a node, reduces state lookups by ~65% and pathfinding cpu usage by ~40%

[x ] Yes I tested this before submitting it.
[ ] I also did a multiplayer test.

Review please

@Raycoms Raycoms merged commit fc1b335 into version/1.20 Oct 21, 2023
1 of 2 checks passed
@Raycoms Raycoms deleted the pathfindingcpu branch October 21, 2023 08:23
Raycoms pushed a commit that referenced this pull request Oct 21, 2023
Introduces a small blockstate cache for repeated lookups during pathfinding when exploring around a node, reduces state lookups by ~65% and pathfinding cpu usage by ~40%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants