skydoves / Cloudy

☁️ Jetpack Compose blur effect library, which falls back onto a CPU-based implementation to support older API levels.
Apache License 2.0
789 stars 28 forks source link

Continuously recalculate blur #15

Closed Myzel394 closed 1 month ago

Myzel394 commented 1 year ago

Is your feature request related to a problem?

When you have a non-state related change (for example a live preview of the camera), the image seems to be frozen.

Describe the solution you'd like:

Add an option to continuously recalculate the blur. Maybe add a parameter recalculationInterval that can be a number and will force an update every ms. 0 would mean "off" in this case. recalculationInterval = 16 for example would mean an update every 16ms.

Describe alternatives you've considered:

As a workaround I was thinking of adding a state that updates itself in intervals and thus forces recalculation.

skydoves commented 1 month ago

Hey @Myzel394, in the new release 0.2.0, the blurring logic has been changed under the hood, so I'm closing this issue. If you still face the similar issue with the 0.2.0, please reopen this one. Thanks!