Skip to content

Update NavMeshPathfinding.json#2151

Open
Bouh wants to merge 1 commit into
mainfrom
navmesh_perf
Open

Update NavMeshPathfinding.json#2151
Bouh wants to merge 1 commit into
mainfrom
navmesh_perf

Conversation

@Bouh

@Bouh Bouh commented Jun 7, 2026

Copy link
Copy Markdown
Member

Cache grid.dimX() and grid.dimY() calls into local variables (dimX, dimY, maxX, maxY) before nested loops, instead of recomputing them on every iteration.
That reduces redundant function call overhead during pathfinding computation.

@Bouh Bouh requested a review from a team as a code owner June 7, 2026 16:38
@D8H

D8H commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Thank you for submitting an extension update.

Please, share profiling results that show the efficiency impact.

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