-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Clean up and optimize BasisUniversal #88464
Conversation
I'm generally ok with this but I agree that testing on mobile devices is required. |
29f74a2
to
e460d1b
Compare
e460d1b
to
d97ece5
Compare
Unlike our usual practice, such a change would be much easier to review if done as two separate commits: one to move the code to a separate file, and one to actual do logic changes. With both types of changes made in the same commit it's pretty difficult to review. |
d97ece5
to
f6899cb
Compare
The commits are now split, as suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good!
f6899cb
to
a1997d1
Compare
Thanks! |
This PR aims to clean up BasisUniversal's code to make it easier to read, as well as extracts the code from
register_types.cpp
into its own files.It also slightly optimizes the memory usage and compression times by using the
get_mipmap_offset_size_and_dimensions()
function instead of copying each mipmap's data into a new image.While it seems to function correctly, it still needs some testing, especially on mobile devices.