Skip to content

Conversation

@0xilis
Copy link
Contributor

@0xilis 0xilis commented May 22, 2025

It's better to specify COMPRESS_PNG_FILES=YES in compiler flags. This is because Xcode compresses PNG images rather horribly; it tries to compress them in a way to make them better for rendering instead of size, but it's actually worse for rendering in practice since the extra time to read data on the NAND ends up being much more costly than what Xcode saves (which is just a few bitflips in the end...)

In this commit, I have specified Xcode to not compress PNG images, and have ran them through a lossless compressor so they maintain the same quality while still being better for storage.

If you have any suggestions or feedback on this PR let me know.

It's better to specify COMPRESS_PNG_FILES=YES in compiler flags. This is because Xcode compresses PNG images rather horribly; it tries to compress them in a way to make them better for rendering instead of size, but it's actually worse for rendering in practice since the extra time to read data on the NAND ends up being much more costly than what Xcode saves (which is just a few bitflips in the end...)

In this commit, I have specified Xcode to not compress PNG images, and have ran them through a lossless compressor so they maintain the same quality while still being better for storage.
@khcrysalis khcrysalis merged commit 7d9147a into khcrysalis:main May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants