netpyoung / unity.webp

:art: WebP made easy for Unity3d
https://netpyoung.github.io/unity.webp/
MIT License
251 stars 30 forks source link

EncodeToWebP too slow #67

Open dimly123 opened 1 week ago

dimly123 commented 1 week ago

public static unsafe byte[] EncodeToWebP(this Texture2D lTexture2D, float lQuality, out Error lError)

The execution of this function is too slow. A 720p picture takes about 1 second. There is no room for optimization.

dimly123 commented 1 week ago

I tested it on a mac m1 computer.