Skip to content
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

Store Assets in Raw and Compressed formats #860

Open
tomadamatkinson opened this issue Dec 4, 2023 · 2 comments
Open

Store Assets in Raw and Compressed formats #860

tomadamatkinson opened this issue Dec 4, 2023 · 2 comments
Assignees
Labels
framework This is relevant to the framework

Comments

@tomadamatkinson
Copy link
Collaborator

It may be an idea to store assets for the samples as raw alongside their compressed counter parts. Or to move the compression of assets into the compilation step of the project. This would allow us to customise how we prepare assets for a project or sample and reduce the time we spend decompressing ASTC texture for incompatible platforms

@tomadamatkinson tomadamatkinson self-assigned this Dec 4, 2023
@SaschaWillems
Copy link
Collaborator

We already have a sample for basis universal compression, and the KTX library supports that. So we could store textures in that format and then transcode at runtime. That's much faster than the current ASTC decoding on desktop.

@SaschaWillems
Copy link
Collaborator

We should def take a look at this. Esp. when doing a batch run in debug mode, some samples that load scenes using ASTC compressed images take ages to load, even on a fairly fast CPU. On my setup, this makes a full batch run take more than 20 minutes, which is a lot since it's something we require when doing framework changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework This is relevant to the framework
Projects
None yet
Development

No branches or pull requests

2 participants