Compress textures with storage compression on import #104571
Open
+129
−41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This performs a compression step for textures that have the VRAM Compressed, VRAM Uncompressed and Basis Universal compression modes.
This usually reduces file size for each compressed texture by a factor of 2, without affecting the memory taken by the texture after it's loaded. This can make for significantly smaller PCK sizes and therefore faster downloads.
Additionally, for image pixel formats that cannot be VRAM-compressed (such as HDR + alpha), this allows having some form of storage compression to reduce file size by a potentially much larger factor.
This can be disabled in the Project Settings if having the fastest possible import/load times is desired, at the cost of larger PCK sizes.
.godot/folder and exported PCK size godot-proposals#11852.Testing project: test_vram_compress_lossless.zip
Preview
Using the testing project linked above.
.godot/importedfolder sizeExported PCK size
Individual file sizes in
.godot/importedBefore
After