practical-tools-for-simple-design icon indicating copy to clipboard operation
practical-tools-for-simple-design copied to clipboard

Skip transform surface when const raw image data transform into texture

Open ntut-xuan opened this issue 1 year ago • 1 comments

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.

ntut-xuan avatar Feb 26 '24 07:02 ntut-xuan

If you encode the image data in bmp format, this would probably be trivial to implement

NOOBDY avatar Feb 26 '24 07:02 NOOBDY