-
Notifications
You must be signed in to change notification settings - Fork 238
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
Optimize TexData (mostly QoiConverter) #886
Conversation
Did you look at the changed files? |
Oh. |
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.
Mostly doc comments
This reverts commit b54a4a7.
Optimizes QoiConverter, makes TexData store a bitmap instead of PNG byte array and replaces most TextureBlob usages with a direct reference to the bitmap
![image](https://user-images.githubusercontent.com/30120687/166817067-55d17513-607c-4f01-91e4-1c7efcbc781e.png)
The memory usage deserializing QOI images is drastically lower:
There isn't much that can be optimized in the serialization but it's still a bit better:old screenshot
Memory usage here is also way lower in serialization now (about 40MB, instead of 380MB on a random 4K wallpaper image)