I ran some tests regarding the increase in size if textures are packed in my packages.
For some jpgs I got an increase of 4000%.
So, a texture that had 39Kb has 1,6Mb when packed into the packages.
However, the same texture as bmp doesn't increase that much when packed.
The bmp file has 1,2Mb before and 1,6Mb when packed into the package.
It actually makes sense since dark basic has to get rid of the compression
before the textures are usable. The end size is the same after all.
So there are basically two options:
1) I just leave it as is.
That means: If I extract files from the packages, to disk or memory, the cpu won't
have to bother with compressions which saves some processing time. On the other
hand more data will have to be read from the disk, but I can compensate that with
streaming.
2) I try to create some own kind of compression.
Compression isn't really complicated. Basically I search for repeating char-paterns in
the file data and replace them with a smaller chunk of chars to decrease the size.
For now I will definitely leave it as is, but I'll keep the possibility for an own compression
in mind.
For some jpgs I got an increase of 4000%.
So, a texture that had 39Kb has 1,6Mb when packed into the packages.
However, the same texture as bmp doesn't increase that much when packed.
The bmp file has 1,2Mb before and 1,6Mb when packed into the package.
It actually makes sense since dark basic has to get rid of the compression
before the textures are usable. The end size is the same after all.
So there are basically two options:
1) I just leave it as is.
That means: If I extract files from the packages, to disk or memory, the cpu won't
have to bother with compressions which saves some processing time. On the other
hand more data will have to be read from the disk, but I can compensate that with
streaming.
2) I try to create some own kind of compression.
Compression isn't really complicated. Basically I search for repeating char-paterns in
the file data and replace them with a smaller chunk of chars to decrease the size.
For now I will definitely leave it as is, but I'll keep the possibility for an own compression
in mind.