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

Adjust texture size to avoid textures that are way too large for a given tileset #95

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

ldicker83
Copy link
Contributor

This is a bit of a brute force method. I noticed during generation that no tileset requires a texture size larger than half height of its width.

There is still a lot of room for improvement. A really good option would be to generate a single texture to use as an atlas, bake all of the tiles into the single larger texture and attach some metadata to it to know which tileset (WELLXXXX) begins where in the atlas.

This is all done in memory and has no effect on the stored tilesets.

@ldicker83 ldicker83 merged commit ab5548f into main Jul 1, 2023
@ldicker83 ldicker83 deleted the OptimizeTexMemory branch July 1, 2023 20:00
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