I tried to make my own real-time Gaussian blur or box blur in a game, but no matter how i implemented it, applying blur to 2D sprites in runtime made the game too slow to be viable.
So i tried how fast Gaussian blur filter is in GIMP, and it took about 3 seconds to apply a 60px radius blur to my test image of 2000×1500 resolution. This verified my own experience of blur being too slow to apply in real-time.
Then i remembered that CSS also has a blur filter. I tried the same 2000×1500 resolution image to test it's speed,
filter: blur(60px);
but it was so fast that i didn't even finish typing the radius value of 60px, and it already applied it both as a 6px and then a 60px blur by the time i typed the two numbers.
So my question is: how is it possible for it to be so fast, and how to potentially implement it outside of a browser and outside CSS?