Sign in to follow this  

For experts - compressed textures

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

We use compressed .dds textures. I wonder when the device make decompression. Always when the g_pDevice->SetTexture() is called, or always when the texture is rasterized over polygons? Is it important to batch SetTexture() calls with compressed dds, more than with normal (uncompressed) textures? thanks in advance

Share this post


Link to post
Share on other sites
If the hardware supports a compressed format (say D3DFMT_DXT1) then it will usually do the decompression "on the fly" when it needs it. The exact inner workings of the driver/GPU are largely irrelevant and unknown [smile]

Apart from some compatability/legacy functionality hidden by the driver, I don't see any reason why they'd actually decompress the whole texture on a SetTexture() call - if the renderer can't directly read from the texels then it's more than likely not going to expose it as a supported format.

hth
Jack

Share this post


Link to post
Share on other sites

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