3 ms·
Yeah because the GPU has special hardware which you can take advantage of for an optimized box filter. https://www.rastergrid.com/blog/2010/09/efficient-gaussi
by tyleo 2y ago
Yeah because the GPU has special hardware which you can take advantage of for an optimized box filter.
https://www.rastergrid.com/blog/2010/09/efficient-gaussian-blur-with-linear-sampling/ https://www.rastergrid.com/blog/2010/09/efficient-gaussian-b...
- mkbosmans 2y agoThat link is not a box filter, as it still uses weights to approximate a gaussian convolution kernel. It just uses some special hardware to do less texture fetches. But that is a constant 2x improvement over the full 1D convolution, not the box filter O(1) approach that the article suggests that browsers are using.
- tyleo 2y agoYou've moved me a place of uncertainty here. I had some confirmation that _some_ browsers use box blurs for this effect, I _know_ some game engines use multiple box blurs to approximate Gaussian blur (having seen the code myself). I updated a few sentences in the article to reflect that uncertainty. Thanks!