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

Replace the Lua implementation of stbi.replace_pixel_color_rgba with a C++ version #515

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

rdw-software
Copy link
Member

Same thing, but significantly faster. Probably not all that relevant, but there's no reason to not take the easy win here.

This includes the old Lua implementation for reference (it's slow).
It's a bit silly doing low-level pixel manipulation in Lua when it's 10x slower with zero benefits to offset the cost.
@rdw-software rdw-software changed the title Replace the Lua implementation for stbi.replace_pixel_colors_rgba with a C++ version Replace the Lua implementation of stbi.replace_pixel_colors_rgba with a C++ version Feb 20, 2024
@rdw-software rdw-software changed the title Replace the Lua implementation of stbi.replace_pixel_colors_rgba with a C++ version Replace the Lua implementation of stbi.replace_pixel_color_rgba with a C++ version Feb 20, 2024
@rdw-software rdw-software merged commit 3d165b6 into main Feb 20, 2024
11 checks passed
@rdw-software rdw-software deleted the stbi-replace-colors branch February 20, 2024 05:15
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.

1 participant