View Single Post
Old 02-20-06, 03:00 PM   #9
ref
Grey Wolf
 
Join Date: Nov 2005
Location: Mar del Plata, Argentina
Posts: 871
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Captain America
So I take it that it could hurt performance if I were to RLE compress every texture? Bummer. I am still doing research on this but there's not a lot of info on the web regarding the performance gains/losses with graphic intensive games.
I don't think it would be a great performance lost, the decompression is made at the moment the texture is read from disk, then it's stored decompressed in memory, and the process is very quick, I've wrote a program to decompress the terrain, and in the process of decripting the compression scheme used in SH3 I've made tests with the files in the map directory, (the .rl ones) wich are 1200x1200 pixels, and with a not very optimized routine in delphi it only takes about 1.5 seconds to decompres when they are in memory, with an optimized routine you should se no noticeable diference in loading a compressed and a decompressed file, as I said the most time consuming part is loading them from disk, so you compensate with the compressed file being smaller.

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.
ref is offline   Reply With Quote