Tileset atlases

All development of pixel art, maps and other graphics.


Post Reply
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Tileset atlases

Post by Jenalya »

4144 suggested to define tileset atlases to make the drawing of maps more performant.
As far as I understood, the client draws a map tile by tile, and everytime the next tile is on a different image than the one drawn before, it has to perform a costly bind() operation to access the other file. Atlases work that way, that the graphics from several tilesets are combined into one file during runtime, to reduce the amount of needed bind() operations.
4144, please correct me if I misunderstood anything. :)

This commit https://github.com/themanaworld/tmwa-cl ... 0d8bf9d934 adds a new xml file maps.xml which defines a few atlases by listing several tileset graphics, and defines some maps to use those atlases.
What's needed now is to complete the file by defining more atlases, and adding the missing maps.

Would someone like to look into this?
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Tileset atlases

Post by o11c »

There's a script that can easily be changed to do this: tools/list-tileset-order
Former programmer for the TMWA server.
Post Reply