-
Notifications
You must be signed in to change notification settings - Fork 108
refactor(pathfinder): Simplify functions to improve readability - Part 3 #1645
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
refactor(pathfinder): Simplify functions to improve readability - Part 3 #1645
Conversation
|
going to add one more function to this that i noticed, only some small changes to it |
b331e23 to
10189db
Compare
|
just a rebase |
|
Added extra commit |
26be73e to
4d6fd78
Compare
|
Updated based on feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs another good look.
1963ae8 to
84ce7dd
Compare
|
updated based on feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No risk, no fun.
|
This needs to be replicated in Generals. |
…:checkDestination (#1645)
…:snapClosestGoalPosition (#1645)
…:examineCellsCallback (#1645)
…:checkForMovement (#1645)
…:moveAllies (#1645)
84ce7dd to
fa7bc60
Compare
|
Copied across to generals with minor differences, some dips in performance seem to be reduced at points when i play back GR1 but nothing major. Like only hitting 19FPS min instead of 14FPS with all pathfinder refactors in place. |
…:snapClosestGoalPosition (#1645)
Part 3 in this munkee series of magic.
This PR cleans up various functions within the pathfinding, the goal to improve readability where possible and to improve performance where possible.
I have broken each function down into it's own commit to aid review.
This PR covers the functions
A few of the refactors cover code simplification by inverting the logic and returning early or by simplifying functionality.
Todo