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

Might be nice to parallelize PNG image loading #331

Open
smcameron opened this issue Dec 12, 2022 · 0 comments
Open

Might be nice to parallelize PNG image loading #331

smcameron opened this issue Dec 12, 2022 · 0 comments

Comments

@smcameron
Copy link
Owner

This would require separating the PNG loading/decoding step from the opengl texture binding stuff, since the opengl stuff can only be called from the main thread, and thus is serialized. I believe most of the time loading images is actually spent in PNG decoding, so separating this into a first step in which all the PNG coding is done (in parallel) and a 2nd step where these loaded PNG images are made known to opengl (serially) should in theory result in significantly faster load times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant