Skip to content

Conversation

pferreir
Copy link

This lib is very useful, but it takes ages to compile "large" (~16K) images, due to the way in which the pixel arrays are built. I believe I've found a better way, with a const loop which the compiler has a much better time handling. The example seems to work (except that SDL segfaults almost immediately, but that's also the case for main on my machine).

Also fixed a couple of typos and clippy warnings. Thanks for the lib, I hope this is useful!

@pferreir pferreir force-pushed the optimize-macro branch 2 times, most recently from 6173a6d to 31e696a Compare July 27, 2025 13:24
@LuckyTurtleDev
Copy link
Owner

LuckyTurtleDev commented Aug 7, 2025

i will definitely check this out, thanks. However i currently have not much time, so it take maybe a while.
I only had use this for extremely small images, so i had not notify the long compile time.

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

Successfully merging this pull request may close these issues.

2 participants