Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
After some investigations and experiments, I found out that it was the PNG compression (well, decompression I should say) that took a while. So I've made some experiments using the LZ4 compression library, which is focused on decompression speed, and it turned out to be an excellent solution!
This is honestly wonderful. I've faced similar problems and my ad hoc solution was to use stb_image (which from my testing was a good bit faster than SDL_Image) and make a simple multithreaded asset loader to spread out the work load. All that said, thank you! I'm definitely going to be playing around with this.
You could check out Binomial's basis_universal. After Google bought them, they open sourced it and allowed use for free.
If you ever get around to it, you could look at how love2d does it. It's also built on SDL but uses OpenGL for rendering. The code is MIT, so if it's neat enough, you could pull it out and plunk it into your engine.