Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / bmp or jpg?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 2nd Feb 2009 15:48
hi will using jpgs instead of bmps for my objects' textures increase my games' performance???

has anyone tested this??
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Feb 2009 17:21
it might but the jpgs will make it look horrible.

Dark Physics makes any hot drink go cold.
Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 2nd Feb 2009 19:58
There is no point in using jpg in your game since it will be uncompressed during the loading (which means that it will even load slower).

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Feb 2009 20:00
It makes no difference, they are decompressed and converted to the format required by your graphics card. JPGs will have slightly lower quality due to the lossy compression. BMPS will be bigger on disk because of their lack of compression, so it's up to your requirements which you use.

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Feb 2009 20:01
Increase performance with a JPG? I don't think it's obvious which one of the two is faster.

Firstly, BMP's are larger - larger means slower to load from disk to memory. However, once a BMP is in memory, it's very easy to turn it into a texture/image.

JPG's are smaller, and therefore faster to load from disk to memory. But, they require a relatively complex unpacking process to turn the loaded data into a texture/image.

Test it carefully and thoroughly before you jump one way or the other.

Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 2nd Feb 2009 22:38 Edited at: 2nd Feb 2009 22:48
Look up .dds. It is a compressed VRAM format.

*Edit* Fixed typos.

Cash Curtis II
19
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 2nd Feb 2009 23:01 Edited at: 2nd Feb 2009 23:03
Only DDS will decrease loading time. Once it's in memory it doesn't matter. However, if you have a large project loading time becomes important. Loading a .bmp, .jpg, or .png can take forever, I've seen as long as 4 seconds, while a .dds of the same resolution loads in a few milliseconds.

Quote: "it might but the jpgs will make it look horrible"

No it won't, unless you use a large compression ratio. JPGs get good compression at lower ratios so there's not much benefit to hurting quality for that reason.


Come see the WIP!
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 4th Feb 2009 14:09
thanks for the advice guys! ill look into dds's
Kira Vakaan
15
Years of Service
User Offline
Joined: 1st Dec 2008
Location: MI, United States
Posted: 5th Feb 2009 02:23
Wow, that is absolutely astonishing.

Using the same 2048x1024 image, I got the average loading times into DBPro for each of the formats. Here are my results:

Format: .jpg
File Size: 319 KB
Average Loading Time: 1.544 sec

Format: .bmp
File Size: 6145 KB
Average Loading Time: 0.667 sec

Format: .dds
File Size: 2731 KB
Average Loading Time: 0.0038 sec

...Absolutely incomparable...
Not_Maindric
17
Years of Service
User Offline
Joined: 10th Jul 2007
Location: Omaha, NE
Posted: 5th Feb 2009 02:54 Edited at: 5th Feb 2009 02:54
That is why all I use is .dds, so does Oblivion, and other games I play. Nothing I know competes with it.

Anything other than games, I use .png.

Login to post a reply

Server time is: 2024-09-28 02:29:25
Your offset time is: 2024-09-28 02:29:25