beutl icon indicating copy to clipboard operation
beutl copied to clipboard

FilterEffectContextを最適化

Open yuto-trd opened this issue 1 year ago • 0 comments

  • [x] SKColorFilter.CreateColorMatrix, SKColorFilter.CreateTableに渡している配列をプールする。
  • [ ] FilterEffectContextの更新でFilterEffect.Versionが同じ場合、そのエフェクトをスキップして既にあるものを使う。 理由: ColorMatrix (float4x5: 80bytes) やMatrixConvolutionなどのフィルタでは余分なアロケーションが発生するから。

yuto-trd avatar Aug 13 '23 13:08 yuto-trd