Libgdx texturepacker thin pixel line

broken image
broken image

libgdx has a TexturePacker class which is a command line application that packs many smaller images on to larger images. Binding the texture is relatively expensive, so it is ideal to store many smaller images on a larger image, bind the larger texture once, then draw portions of it many times.

broken image

In OpenGL, a texture is bound, some drawing is done, another texture is bound, more drawing is done, etc.

broken image