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

Small performance optimization of monster movement #44242

Merged
merged 1 commit into from
Sep 20, 2020
Merged

Conversation

ZhilkinSerg
Copy link
Contributor

@ZhilkinSerg ZhilkinSerg commented Sep 18, 2020

Summary

SUMMARY: Performance "Small performance optimization of monster movement"

Purpose of change

Some creatures can't move because they are surrounded by terrain/furniture/creatures, but they still try to do that and make somewhat expensive pathfinding calculations which can and should be avoided.

Describe the solution

Do not try to move monster that can't move into.

Describe alternatives you've considered

Make all monsters stationary.

Testing

  1. CI passes.
  2. Monsters still move correctly.

@ZhilkinSerg ZhilkinSerg added Code: Performance Performance boosting code (CPU, memory, etc.) [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. labels Sep 18, 2020
@kevingranade
Copy link
Member

ahh yes the mi-go stuck in a cell performance drain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Performance Performance boosting code (CPU, memory, etc.) Monsters Monsters both friendly and unfriendly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants