I am making a 2D runner game with endangin and my platforms have been created from 32x32 sprites, which are separate There are textured fields. I want to be able to create platforms with different sizes, so I can not make a platform with a single image file.
Therefore, each of my platforms is created from several sprites with hundreds of sprites if the platform is large. This clearly reduces the performance of my game This is the reason why I am trying to find a way to make a big texture practice from my small tiles which I am making my platform, so I make less prints I will be able to.
Whether I create the graphic design of a platform that does not always have the same shape or not to make the texture desert of the entire phase (made up of many platforms).
How can I touch texture vacancies simultaneously in an efficient way?
As far as I understand the texture rules, they are only certain types of a given atlas There are references (in which memorable image) will not help by increasing the size of a texture area to reduce the memory, instead you will only increase the cutout / clipping to see it from your atlas
For example, Your image looks like this (with texture areas A, B, C, D):
AB
CD
made its own Texture ABC and D (and probably it is not what you want) in a large texture area as a result of width and height doubling of the region area
If your platform contains only one texture area A, So you can load it into a new Atlas as a single PNG and you can add Additional Information , you should do the following: These points should improve performance P> More information can be found in the Andygen Forum or TextureOptions to the REPEATING_NEARIST_PREMULTIPLYALPHA in the manufacturer then you can stretch the width and height of the teststore area Per width and can set the height and Atlas will repeat it - if you
textureRegionHeight = imageHeight then you will be made AAAAA; TextureRegionWidth = 5 * imageWidth; SpriteWidth = textureRegionHeight; SpriteHeight = textureRegionHeight; To improve performance,
No comments:
Post a Comment