So basically I want to do loading images via code, there will a lot of them, so I want to know exactly what is going, in terms of storage, what format they are stored in, what gives best optimization memory wise.
I've did several experimentation, but it is still unclear how to yield results. For example this piece of code design to load image resources:
for ext in ResourceLoader.get_recognized_extensions_for_type("ImageTexture"):
if path.extension() == ext:
var texture = ImageTexture.new();
var image = Image();
Another alternative would be to use
texture.load(path) in that case. Either way I don't seem to get any difference between type of compression, wether lossless, or lossy. It does however have a difference from just using a plain
load(path), of about 40% in corresponding memory size.