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

Scan bigger chunks #186

Open
narc0tiq opened this issue Nov 30, 2024 · 2 comments
Open

Scan bigger chunks #186

narc0tiq opened this issue Nov 30, 2024 · 2 comments
Milestone

Comments

@narc0tiq
Copy link
Owner

Configure a linking distance for ores (Factorio may already have this property) and search larger areas with find_entities_filtered to look for connected ores from the same patch.

Compare performance with the single-tile, single entity search we do right now. I suspect it will be faster to iterate the larger result than to search N times.

@narc0tiq narc0tiq added this to the Stretch goals for 1.0 milestone Dec 1, 2024
@narc0tiq
Copy link
Owner Author

narc0tiq commented Dec 2, 2024

Factorio does already have the property, but it exists only in the data stage: resource_patch_search_radius (default 3) controls how the mouseover counts are done on the map.

I suppose we'll have to have our own search radius (but 3, aka a 5x5, seems like a good start).

@narc0tiq
Copy link
Owner Author

See also #111, which is about changing how scanning works by providing a non-scanning site addition process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant