Is it possible to run compressed image in OpenFl ?
The decompressed image data can be RGB ( 24 bits ) or RGBA ( 32 bits ) , for each color channel takes 1 byte.
This mean , when I use image atlas with size :
2048 x 2048 * 4 = 16 MB Ram ( the image itself is about 1.5 Mb size on disk)
At the other side , WebGL provide support for a number of compressed texture formats such as :
- DXT : desktop devices and some Android devices
- PVR : all iOS devices / some Android
- ETC1 : most Android devices
Which give about > 80% less in memory size i.e. if JPG use 30 MB ram, DXT will use only 5 MB.