Skip to content

Allow configuring "Only use precompressed textures if they're BPTC (BC7)" #669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DanielGibson
Copy link
Member

Allow configuring "Only use precompressed textures if they're BPTC (BC7)" by setting image_usePrecompressedTextures 2.

Also allow configuring "compress uncompressed textures to BPTC on upload to GPU" by setting image_useCompression 2.

And expose that in the Dhewm3SettingsMenu

Both can now be set to 2 instead of just 0/1.
For image_usePrecompressedTextures 1 now means "use .dds files no matter
how they're compressed" and 2 means "only use .dds files if they are
compressed with BPTC/BC7 or are uncompressed".

For image_useCompression 1 means "compress textures with S3TC on upload"
(just like before) and 2 means "compress with BPTC/BC7 if available"

I wasn't sure whether this option makes sense for image_useCompression
(over always using BPTC if available), but I can imagine that loading
takes longer with BPTC (the driver has to compress the raw image data
and compressing to S3TC might be faster than for BPTC)
@DanielGibson
Copy link
Member Author

Test binaries for Windows are available at https://github.com/dhewm/dhewm3/actions/runs/14344017719?pr=669
(under Artifacts; you need to be logged in at Github to download them)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant