WolfireGames / overgrowth

Open Source codebase of the game Overgrowth by Wolfire Games LLC
Apache License 2.0
2.51k stars 260 forks source link

Allow to disable DDS image search #59

Closed feliwir closed 2 years ago

feliwir commented 2 years ago

The ImageSampler (which loads textures in software/ on the CPU) currently uses DDS textures instead of the also existing TGA image. The problem with that is that DDS decoding requires CPU time and is a lossy format. We have GL_EXT_texture_compression_s3tc as a required extension, so we don't need any fallback

We can avoid loading DDS on the CPU by explicitly asking for the original image path.

As a nice side benefit this avoids us having to support DDS decoding on the CPU at all, which allows #58 to proceed.