Jump to content
  • Advertisement
Sign in to follow this  
JoystickX

For experts - compressed textures

This topic is 4555 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
Advertisement
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
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!