nikolaydymura / flutter_image_filters

MIT License
28 stars 13 forks source link

Using GroupShaderConfiguration( include configurations ) and PipelineImageShaderPreview cause lag . #28

Open SonHoang1002 opened 7 months ago

SonHoang1002 commented 7 months ago
nikolaydymura commented 7 months ago

@SonHoang1002 pipelining will create a new image at every step. In some cases, it may be too slow and ineffective. There is an alternative - bunching. In the package, there is a command line to generate a bunch of shaders as one shader, so it will be far faster and more effective.

The list of shaders for bunching is limited. But you can group the generated ones and it will do the necessary optimization for you.

https://github.com/nikolaydymura/flutter_image_filters/blob/main/GENERATE.md