dmitric / DLCImagePickerController

ImagePickerController with live filters, radial blur and more. Brought to you by Backspaces.

Home Page:www.backspac.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blur is applied multiple times on pan/pinch/toggling

leejunkit opened this issue · comments

Turn on blur and observe the effect. Then either toggle it on and off, or pan, or pinch. Observe that the blur "intensity" increases every time the event happens when the blur "intensity"/"level" should be constant, equal to the first time the blur is applied.

Ah this is an interesting one. Very subtle. I am reusing the blur instead of creating a new one each time, but not sure why this would happen. I wonder if it's due to the changes in GPUImage for caching textures, etc.

This has an unfortunate side effect of causing the image to become blurrer and blurrer everytime the user adjusts the size/position of the blur. Is there a way to force-reset the filter (like clear cached textures etc) without explicitly creating a new GuassianBlurFilter every single time?

Has been fixed in the latest GPUImage commits.