Sign in to follow this  

Which is faster: loading compressed or uncompressed texture

This topic is 3297 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
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

This topic is 3297 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this