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

Limit start location search radius #28959

Conversation

ZhilkinSerg
Copy link
Contributor

Summary

SUMMARY: Performance "Limit start location search radius"

Purpose of change

Fix occasional hanging after game start due to excessive overmap generation when start location overmap terrain cannot be found.

Describe the solution

Lower start location search radius from 32 to 3 overmaps. Previous value of 32 is arbitrary number which should be large enough to include all overmaps ever created, but this value doesn't make sense currently.

32 was an arbitrary number
@ZhilkinSerg ZhilkinSerg added Code: Performance Performance boosting code (CPU, memory, etc.) Map / Mapgen Overmap, Mapgen, Map extras, Map display [C++] Changes (can be) made in C++. Previously named `Code` labels Mar 24, 2019
@Rivet-the-Zombie Rivet-the-Zombie merged commit 165f7cd into CleverRaven:master Mar 25, 2019
@ZhilkinSerg ZhilkinSerg deleted the limit-start-location-search-radius branch March 28, 2019 09:22
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.) Map / Mapgen Overmap, Mapgen, Map extras, Map display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants