TGA or BMP?
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
TGA or BMP?
I downloaded a pack of textures, but they are all in tga format (without alphamaps, just tga). Will there be any difference in the framerate if I use the textures like the way they are (in tga format) or if I convert them to BMPs and than use them?
Re: TGA or BMP?
TGA can have colours stored in 32 bit format, which would probably have more data in it, however TGA's can be compressed. With BMPs, while you can compress them, RF probably can't read the compressed versions, although I don't know for sure. BMPs can only store data in 16 and 256 colour, which should contain less information per file. T o tell you the truth, you can find out the easiest by taking the TGA, noting the file size, and converting to a BMP, and then comparing.
Once I was sad, and I stopped being sad and was awesome instead.
True story.
True story.
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
Re: TGA or BMP?
Yeah, that sounds logical, I'll give it a try (the only problem is that the tetures are so much :D )
Re: TGA or BMP?
I don't think it will make a speed difference, because both are loaded into an internal genesis3d-bitmap-format by RF.
RF can load 32Bit TGAs with Alpha-channel (I don't think compressed tgas are allowed) and 24Bit and 8Bit (256 colors) BMPs.
RF can load 32Bit TGAs with Alpha-channel (I don't think compressed tgas are allowed) and 24Bit and 8Bit (256 colors) BMPs.
Everyone can see the difficult, but only the wise can see the simple.
-----
-----
- metal_head
- Posts: 1244
- Joined: Sat Jan 05, 2008 8:31 pm
- Location: Bulgaria,Sofia
- Contact:
Re: TGA or BMP?
So I don't need to bother for that eh? Bad, because I spotted a slight FPS decrease in a part of a level that I'm working on. It's still about 70 FPS per second, but I don't like that when I jump and the FPS is low, I jump higher...also the headbobbing (which I'm not using) is slower when the FPS is slower, so I try to keep the FPS at it's maximum at all the time
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Re: TGA or BMP?
RF supports uncompressed and run length encoded (RLE) TGA files.Jay wrote:RF can load 32Bit TGAs with Alpha-channel (I don't think compressed tgas are allowed) and 24Bit and 8Bit (256 colors) BMPs.
If you put the images into a TXL file then there would be no difference at all because they are stored in the genesis3d image format. For other images (such as flipbooks for example) you may save some disk space if you're using rle TGA files (but you could also use other file formats like JPG for those).