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

Coalesce duplicate tile definitions on save. #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

warriorstar-orion
Copy link

This change modifies maps just before saving to find instances of multiple keys sharing the same prefab data, and removing all but one from the dictionary, assigning that one to any coordinate on the grid which needs that prefab data.

No test case but I ran the implementation through https://github.com/warriorstar-orion/avulto with small and large maps and sanity checked its behavior. It doesn't seem to have much of a performance impact on save, either.

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

Successfully merging this pull request may close these issues.

1 participant