Can not enable custom texture compression for windows and mac
Use Case
Reduce memory usage
Problem Description
There is no way to add custom texture compression and format for PC platforms in recent cocos versions.
I have implemented compressTextures in a asset-handlers.ts but it's only called back for ios and android.
I have added a compression format in builder.json like this, still not working
"pc": {
"astc_8x8": {
"quality": "medium"
}
}
Proposed Solution
Implementing compressTextures in an extension should be called back for every platform set in builder.json.
How it works
No response
Alternatives Considered
It would be possible to change it for all files by parsing the build folder, but it is too much. It must be done only for images configured with a compression preset.
Additional Information
No response
@adrianmdumitru could you share us how you implement it on iOS and Android. I think they are similar to Windows and mac.
@minggo @yanOO1497 for iOS and Android there is no need to use custom format, the builtin ASTC format is working well. I only need to implement custom format for PC as the editor UI does not allow setting presets.
We would like the engine to support s3tc for Windows web builds since ASTC is not supported on that platform.