nicklockwood / FXBlurView

[DEPRECATED]
Other
4.94k stars 713 forks source link

Dynamic Blur Kills CPU #48

Closed wt65074 closed 10 years ago

wt65074 commented 10 years ago

My FXBlurView is using 80+% of my cpu

nicklockwood commented 10 years ago

Yeah, that's quite possible.There are various steps you can take to reduce this:

wt65074 commented 10 years ago

Will try. Thanks.

Sent from my iPhone

On Mar 14, 2014, at 1:28 PM, Nick Lockwood notifications@github.com wrote:

Yeah, that's quite possible.There are various steps you can take to reduce this:

If the content behind the blur view doesn't change, set dynamic = NO If the content changes only infrequently, increase the updateInterval to something like 0.1 (10 frames per second) Try reducing the number of blue iterations and see if the quality is still acceptable If the content behind is a scrollview, set dynamic = NO and use the scrollView delegate's didScroll method to update the blurView instead — Reply to this email directly or view it on GitHub.