practical-tools-for-simple-design
practical-tools-for-simple-design copied to clipboard
Skip transform surface when const raw image data transform into texture
The current step of transform raw image to texture need to transform the surface first. It may cost lot of overhead when transform it.
The issue were discovered in #73 due to the missing texture image is PNG format and it may need lot of transform-surface implementation and make it into surface. But it may consider using BMP format and reduce the transform-surface implementation, and trying to skip the transform-surface implementation to transform into texture.
If it work, create a PR to optimized it. If it not work, close the issue.
If you encode the image data in bmp
format, this would probably be trivial to implement