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

Unreachable searchmap islands cause performance degradation #2079

Open
lynxlynxlynx opened this issue May 11, 2024 · 0 comments
Open

Unreachable searchmap islands cause performance degradation #2079

lynxlynxlynx opened this issue May 11, 2024 · 0 comments
Labels
performance Issue that impacts performance system: pathfinding

Comments

@lynxlynxlynx
Copy link
Member

lynxlynxlynx commented May 11, 2024

The bad news: When exhausting on a big map, the algorithm is simply expensive, all the observed frame drops are a result of unfortunate geometry/searchmap blocking. It is especially bad when the ignore-actors flag fails the second time with a full group, because there is actually just no path, see BG2 slums:

pathfinding

Yet there is a way (I can submit a PR if interested) to reuse a little bit of information to halve the penalty by skipping the ignore-actors run if there wasn't any actor to potentially bump into.

The T* stuff doesn't hurt r/n on small maps but on larger ones, we get what we see if there is no path to find. Not sure what to do about this at the moment.

Originally posted by @MarcelHB in #1692 (comment)

See the rest of the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Issue that impacts performance system: pathfinding
Projects
None yet
Development

No branches or pull requests

1 participant