-
Notifications
You must be signed in to change notification settings - Fork 69
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
Better performance for large Tilesets #125
Conversation
Thanks for the contribution! I'll review this as soon as I get a moment. |
Have you any idea how much faster it is, or is there any trade-off for small tilesets? |
Old version
New version
The load functions are loading tilemaps with that amount of tiles.
And the tileset files are of the format:
Terrain is the preview map of lpc terrains |
Wow! That's a considerable speed up - nice work! 😁 |
This creates an index of tiles by their ID, removing the need for a sort in the vector of tiles. It also makes getTile() and createMissingTile() constant operations.