The changes originate from the patches supplied by the user zergling_zzh made during the development of the Z-Studio game "ZDefense", which btw is super awesome and addictive![]()
![]()
![]()
recently I introduced a new parameter when creating a Texture, the so called TextureFormat (an Enum). Currently it has two values RGBA_8888 and RGB_565. RGBA_8888 was the previous default. The reason I introduced this is that not every time you have Textures that need transparency, quite often for opaque backgrounds. So when using RGBA_8888 we are basically wasting 25% of the data.
This is where RGB_565 jumps in, as it does not have an Alpha channel and also it reduces the color channels from 8 to 5(red, blue) 6(green) bits, resulting in a Texture that is using 50% less space, when compared to RGBA_8888. On the other hand, when using RGB_565 we obviously lose some color accuracy, having only 2^16 = 65.536 instead of 2^24 = 16.777.216 different colors. Depending on the Texture you are using this loss in color accuracy might not be noticeable and could give you a speedup of somewhere around 5 to 20%

Best Regards,
Nicolas