About the size of Texture

With the recent GPU (Graphic Processing Unit: graphic drawing function), there are certain regulations of size of the texture to be used (not the size of Sprite’s parts but the collection of the parts’ pattern designs: so-called “Cell Map” by the “OPTPiX SpriteStudio)”.

With such regulations, cautions must be taken to the following two points:

  • The texture’s vertical and horizontal sizes must be 2n (2 powered by n) pixels.
  • The texture’s vertical and horizontal sizes must be above 64 pixels.

Concretely, the sizes must be of 64, 128, 256, 512, 1024, 2048 …… (x2, thereafter).

In case of the number of pixels different from these values, depending upon hardware to execute, “the image may be stretched”, or “the image may be added with an extra part.”, and the output may be different from the expected results, so as to adjusting to be 2n (2 powered by n) (The movement will be different depending upon hardware).

Also, if the texture is made to be square (the same number of pixels horizontally and vertically), the image-drawing performance will be enhanced depending upon hardware.