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

[PicoXR] Use compressed ETC2 textures for environments #1556

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

svillar
Copy link
Member

@svillar svillar commented Oct 3, 2024

PicoOS v5.4 added support for ETC2 compressed textures. We removed support for PicoOS < v5.7 when the version check was added. This means that we can now finally switch to using compressed textures also for Pico devices.

There is no need to distribute the PNG versions in the Pico package. That would save us 14MB in the distributed APK. Apart from that the external environments code was also modified to download the KTX versions of the textures.

The already downloaded environments will be used though because we have the same id for the different formats of the same environment. But for the builtin ones, and new downloads the KTX versions would be the selected choice.

Fixes #522

PicoOS v5.4 added support for ETC2 compressed textures. We removed
support for PicoOS < v5.7 when the version check was added. This means
that we can now finally switch to using compressed textures also
for Pico devices.

There is no need to distribute the PNG versions in the Pico package.
That would save us 14MB in the distributed APK. Apart from that
the external environments code was also modified to download the
KTX versions of the textures.

The already downloaded environments will be used though because
we have the same id for the different formats of the same environment.
But for the builtin ones, and new downloads the KTX versions
would be the selected choice.

Fixes #522
Copy link
Member

@javifernandez javifernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice ! The code looks good and it works fine.

Copy link
Collaborator

@felipeerias felipeerias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@svillar svillar merged commit 01c42ee into main Oct 3, 2024
22 checks passed
@svillar svillar deleted the picoxr_etc2_envs branch October 3, 2024 14:57
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.

[PicoXR] Use GL_COMPRESSED_RGB8_ETC2 for skybox textures
3 participants