I tried with other filters like channelscrambler and it's almost the same.
Why is it so slow? Is it realy GPU based?
A few questions:
What size image?
What blur radius?
How are you applying the filters (ShaderJob or .filters array)?
That will help me to answer your questions.
The size of the image is 1000*600.
I use the default radius of the filter. I don't know the value.
I run the swf on a Intel core2duo 2.2Ghz.
I use the filter array to apply the filter.
To illustrate my problem, you can download a very simple sample of my project here. It's a grid where i draw a collection of items in a bitmap.
If i apply the filter in the constructor of the grid in Index.as by passing true in the first parameter, my CPU usage is at 20 to 30%. If I don't apply the filter, the CPU usage is at 2 to 3%.
What is the problem?
Thanks for your help.
Ok, I found why : http://blog.theflashblog.com/?p=822.
Pixel Bender is not hardware accelerated when it runs in the Flash Player. I'm disappointed.
10% of CPU use for a blur filter, is it possible to optimize this?