Jump to content
  • Advertisement
Sign in to follow this  
Dirge

Which is faster: loading compressed or uncompressed texture

This topic is 3515 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Specifically I'm interested to know if on an embedded platform with solid state storage, the act of loading a small texture and decompressing it to a larger buffer is faster than loading a much larger uncompressed texture. I'm assuming that since less processing is occurring for an uncompressed texture, it's generally going to be faster but is the fact that it is so much bigger an issue since it can stall the cpu on the read-lock? Also, would you say this is a non-issue if you plan to use a pack file format at some point? Normally I would just test this myself but I'm really short on time and figure someone else here knows better anyways. Thanks for your replies! p.s. example file formats png vs tga (non-rle)

Share this post


Link to post
Share on other sites
Advertisement
It will depend a lot on the compression ratio, your I/O speeds, and how fast the processor can decompress. In general you're more likely to be bound by I/O than by CPU power, but profiling is the only way to know for sure.

Share this post


Link to post
Share on other sites
Short answer: Yes.

Long answer:

It completely depends on individual hardware, how the code is written and actual data.

Given there's currently a factor 20 difference when it comes to SSD, and that CPUs in embedded platforms may range from P4-class chip down to 8-bit RISC with no floating point, what is faster is simply impossible to answer.

Measure it on the hardware you have, there is no other way. If the answer really matters, then you will find 15 minutes to test it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!