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

etc2comp: Fix max iterations for RGBA channels #37488

Merged

Conversation

akien-mga
Copy link
Member

Those checks were very likely meant to clamp the max value,
not the min one.

Fixes #10059 (comment).

I have yet to do tests to check if etc2 import still seems to work properly.

CC @jitspoe

Those checks were *very likely* meant to clamp the max value,
not the min one.

Fixes godotengine#10059 (comment).
@jitspoe
Copy link
Contributor

jitspoe commented Apr 1, 2020

I had made the same change locally, and it fixed the freezing on import. Not 100% sure if the etc2 textures look correct. Never actually validated them. I'm hoping somebody on the etc2comp repo responds as to whether or not that's the correct fix.

Is the patch file supposed to be included in this commit?

@Calinou
Copy link
Member

Calinou commented Apr 1, 2020

Is the patch file supposed to be included in this commit?

Yes, we add patches for third-party libraries to version control so we can apply them again if we update etc2comp in the future.

@akien-mga akien-mga added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 1, 2020
@akien-mga
Copy link
Member Author

I tested with Jetpaca switching it to GLES3 / ETC2 import with all PNGs imported as VRAM compressed, and I don't see any particular issue with the imported textures, so that should work for the basic regression testing.

@akien-mga akien-mga merged commit 84b308f into godotengine:master Apr 1, 2020
@akien-mga akien-mga deleted the etc2comp-rgba8-max-channels branch April 1, 2020 14:47
@akien-mga
Copy link
Member Author

Cherry-picked for 3.2.2.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

etc2comp texture import is extremely slow
3 participants