![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Planesman
![]() Join Date: Apr 2004
Location: The Good Ole Red White & Blue
Posts: 193
Downloads: 167
Uploads: 0
|
![]()
In photoshop there is an option to save .tga files with RLE compression. RLE is a loss less compression meaning visually the image quality is the same just a smaller size.
I noticed when using this I can significantly reduce the size of many of the game images, which in theory should reduce memory usage. Take for instance the Periscope.tga file, by default it's 4mb but when saved with RLE compression its 2.64mb. Thats a significant difference. I was thinking if I changed every .tga texture in the game I should notice improved performance. Before I go ahead with this task I was hoping someone who knows about textures and RLE compression would advise me if this is a good idea. I don't want this to make my performance worse. I was thinking...if the texture is now compressed I am saving memory but will it require more GPU/CPU power to display the image in the game because its compressed? Should RLE be used for graphic intensive games? The devs didn't use it so it makes me wonder if this is worth it. Any info is appreciated. -CA |
![]() |
![]() |
![]() |
#2 |
Pacific Aces Dev Team
![]() |
![]()
I think in case of compressed textures, the game will anyway decompress them before loading and therefore no saved operational memory but increased loading times. I tried it once before but did not notice any improvement although I will not bet on that since I did not do proper tests.
|
![]() |
![]() |
![]() |
#3 |
Admiral
![]() Join Date: May 2005
Location: Bay Area, California, USA
Posts: 2,377
Downloads: 0
Uploads: 0
|
![]()
I use RLE compression all the time and it does not affect anything in-game.
It's nice because all of the images are noticeably smaller in size, as you have already noticed.
__________________
It takes two to tango ![]() |
![]() |
![]() |
![]() |
#4 |
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]()
I wish we could have an unified answer about this.
I've searched about RLE not long ago and most of the post said to never do RLE compression and always save in 24 bits. Most of the reasons was for performance and stability issues. I don't know how Ubi make their standards, but they have surely have one about tga files. |
![]() |
![]() |
#5 | |
Grey Wolf
![]() Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#6 | ||
Stowaway
Posts: n/a
Downloads:
Uploads:
|
![]() Quote:
They have to be save in 32 bits, a must. But I don't know if RLE can be also checked. |
||
![]() |
![]() |
#7 |
Grey Wolf
![]() Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
|
![]()
I haven't tried in the game, but I use 32 bits+alpha tga rle compresed all the tima at work, I don't think it would be a problem as the rle compression is a standard tga feature.
|
![]() |
![]() |
![]() |
#8 | |
Planesman
![]() Join Date: Apr 2004
Location: The Good Ole Red White & Blue
Posts: 193
Downloads: 167
Uploads: 0
|
![]()
Thanks for responding...
You can RLE compress 32bit .tga's. I use photoshop, I tested it and it does preserve the alpha channel. Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Grey Wolf
![]() Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
|
![]() Quote:
Also there are rle decompressio routines embedded in direct x wich are writen in assembler and they are extremely fast, they are used for dib rle compressed files. |
|
![]() |
![]() |
![]() |
|
|