dmitric / DLCImagePickerController

ImagePickerController with live filters, radial blur and more. Brought to you by Backspaces.
www.backspac.es
BSD 3-Clause "New" or "Revised" License
1.56k stars 320 forks source link

Blur is applied multiple times on pan/pinch/toggling #27

Closed leejunkit closed 11 years ago

leejunkit commented 11 years ago

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.

dmitric commented 11 years ago

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.

leejunkit commented 11 years ago

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?

leejunkit commented 11 years ago

Has been fixed in the latest GPUImage commits.