-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Disable unused parts of Basis Universal to improve build times and reduce binary sizes #56310
Milestone
Comments
I've tried my hand at it: https://github.com/Calinou/godot/tree/basis-universal-disable-unused-features The code compiles successfully, but the linking stage fails. Any ideas?
|
We now support and need ASTC, but indeed PVRTC could be disabled. I'm not sure the build time and binary size gains would be significant, but why not. |
Since #56309 was merged and ASTC is required. This is closable? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Godot version
4.0.dev (28174d5)
System information
Fedora 34, GeForce GTX 1080 (NVIDIA 470.74)
Issue description
Right now, all the default features of Basis Universal are enabled at compile-time.
BASISD_SUPPORT_ASTC
BASISD_SUPPORT_UASTC
BASISD_SUPPORT_PVRTC1
(if Remove support for PVRTC texture encoding and decoding #56309 is merged)BASISD_SUPPORT_PVRTC2
(if Remove support for PVRTC texture encoding and decoding #56309 is merged)The above defines could all be set to
0
so that they are disabled at compile-time. Godot does not currently support displaying those compression formats, so they're of no use in the transcoder. (ASTC support may be considered in a future Godot release, but not for 4.0 as hardware adoption will still be too low when 4.0 is released.)See https://github.com/BinomialLLC/basis_universal/wiki/How-to-Use-and-Configure-the-Transcoder#shrinking-the-transcoders-compiled-size.
Steps to reproduce
N/A
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: