anton-johansson / 2d-game

Apache License 2.0
0 stars 0 forks source link

Improve tile rendering #9

Closed anton-johansson closed 6 years ago

anton-johansson commented 6 years ago

We're using GL_QUADS to render the tiles. And different tilesets aren't really working either. We should find all visible tiles on the map and group them by their tileset and render them as batches, one for each tileset. Or maybe even X tilesets, using mulitple textures in the same batch and a shader.