<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit" -->

---
title: How to blur images at 20,000 FPS (or 50 microseconds)
description: A deep technical walkthrough explains why blurring images can be as computationally expensive as ray tracing, then progressively optimizes a box/Gaussian blur...
canonical: https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to blur images at 20,000 FPS (or 50 microseconds) | daily.dev
og:description: A deep technical walkthrough explains why blurring images can be as computationally expensive as ray tracing, then progressively optimizes a box/Gaussian blur...
og:url: https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit
og:image: https://api.daily.dev/og/posts/D17BoUcIt.png
og:image:alt: How to blur images at 20,000 FPS (or 50 microseconds)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to blur images at 20,000 FPS (or 50 microseconds)

**[Acerola](https://daily.dev/sources/acerola)** · 44 min read · 0 upvotes · 0 comments

## Summary

A deep technical walkthrough explains why blurring images can be as computationally expensive as ray tracing, then progressively optimizes a box/Gaussian blur compute shader. It covers race conditions from reading/writing the same buffer, fixing edge darkening and box artifacts with a Gaussian weight function, linear separability (splitting 2D convolution into two 1D passes for a 95% workload reduction), the Kawase blur technique (exploiting bilinear GPU texture sampling to cut taps further), downsample/upsample blur approximations, and the dual Kawase/dual filter blur from Marius Bjorg's 2015 SIGGRAPH talk. Benchmarks on an RTX 4090 and GTX 1660 show runtime dropping from milliseconds to tens of microseconds, with a final comparison of quality vs speed trade-offs across separable Gaussian, dual Kawase, and single-sample down-up blurs, plus a note on why circular bokeh blurs can't be separated the same way.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=YJVYX8tllj4>

## Questions this post answers

### How do you make a Gaussian blur separable to speed up a compute shader?

A 2D Gaussian function can be rewritten as the product of two 1D Gaussian functions because addition in the exponent becomes multiplication outside it, e^-(x²+y²) equals e^-x² times e^-y². This lets you run a horizontal 1D convolution followed by a vertical 1D convolution instead of one 2D convolution, cutting a 41x41 kernel's workload from 3.5 billion pixels to 170 million, roughly a 95% reduction, using a ping-pong double buffer to store the intermediate pass.

_daily.dev surfaces graphics programming breakdowns like this for engineers optimizing real-time rendering pipelines._

### What is the Kawase blur and how does it reduce texture samples?

The Kawase blur, invented by game developer Masaki Kawase in the early 2000s, exploits bilinear texture sampling so a single sample between four pixels returns their average for free, letting a 3x3 blur use just four texture taps in one pass instead of nine. The original technique runs six passes with increasing sample distance per pass, achieving results comparable to a 41x41, 7.0-deviation Gaussian blur while cutting total workload to about 50 million pixels, a 98.5% decrease from the naive approach.

_Developers comparing blur algorithms for performance budgets can track techniques like this via daily.dev._

### What is the difference between the dual Kawase blur and a standard separable Gaussian blur in terms of speed and quality?

The dual Kawase blur, based on Marius Bjorg's 2015 SIGGRAPH 'bandwidth efficient rendering' talk, applies one filter while downsampling and another while upsampling, achieving visual quality nearly identical to a real Gaussian at roughly 25 million processed pixels versus 302.7 million for a separable Gaussian, running in about 49 microseconds versus 0.33 milliseconds on an RTX 4090. However, it lacks a built-in intensity slider like the Gaussian's standard deviation and shows subtle artifacts on small moving objects.

_daily.dev helps engineers weigh blur algorithm trade-offs like these when tuning game rendering performance._

## Similar posts on daily.dev

- [Fast blur with animated radius · Aras' website](https://daily.dev/posts/fast-blur-with-animated-radius-aras-website-bfmjroyb7) · Aras Pranckevičius · 1 upvotes · 0 comments
- [Graphics Programming weekly - Issue 457 - September 27th, 2026](https://daily.dev/posts/graphics-programming-weekly---issue-457---september-27th-2026-ttollowih) · Jendrik Illner · 0 upvotes · 0 comments
- [5× faster fast\_blur in image-rs – Arthur Pastel](https://daily.dev/posts/5-faster-fast-blur-in-image-rs-arthur-pastel-aq3ee49n8) · Lobsters · 2 upvotes · 0 comments
- [Richard Geldreich's Blog: Block blurring \(prefiltering\)](https://daily.dev/posts/richard-geldreich-s-blog-block-blurring-prefiltering--pwu24bb3y) · Richard Geldreich's Blog · 0 upvotes · 0 comments
- [Fast Gaussian Blur Implementation in Java](https://daily.dev/posts/fast-gaussian-blur-implementation-in-java-lm2l6pci5) · Baeldung · 0 upvotes · 0 comments

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#gpu](https://daily.dev/tags/gpu), [#image-processing](https://daily.dev/tags/image-processing)

[View this post on daily.dev](https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to blur images at 20,000 FPS (or 50 microseconds)","url":"https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit"},"datePublished":"2026-09-24T19:41:20.297Z","dateModified":"2026-09-24T19:41:45.775Z","description":"A deep technical walkthrough explains why blurring images can be as computationally expensive as ray tracing, then progressively optimizes a box/Gaussian blur...","image":"https://i.ytimg.com/vi/YJVYX8tllj4/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/YJVYX8tllj4/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Acerola","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Acerola","logo":"https://media.daily.dev/image/upload/s--zggsfFYo--/f_auto,q_auto/v1773656435/logos/acerola?_a=BAMAMiiu0","url":"https://daily.dev/sources/acerola"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development,gpu,image-processing","timeRequired":"PT44M","video":{"@type":"VideoObject","name":"How to blur images at 20,000 FPS (or 50 microseconds)","description":"A deep technical walkthrough explains why blurring images can be as computationally expensive as ray tracing, then progressively optimizes a box/Gaussian blur...","thumbnailUrl":"https://i.ytimg.com/vi/YJVYX8tllj4/sddefault.jpg","uploadDate":"2026-09-24T19:41:20.297Z","duration":"PT44M","url":"https://api.daily.dev/r/D17BoUcIt","embedUrl":"https://www.youtube.com/embed/YJVYX8tllj4"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Acerola","item":"https://daily.dev/sources/acerola"},{"@type":"ListItem","position":3,"name":"How to blur images at 20,000 FPS (or 50 microseconds)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-blur-images-at-20-000-fps-or-50-microseconds--d17boucit#faq","mainEntity":[{"@type":"Question","name":"How do you make a Gaussian blur separable to speed up a compute shader?","acceptedAnswer":{"@type":"Answer","text":"A 2D Gaussian function can be rewritten as the product of two 1D Gaussian functions because addition in the exponent becomes multiplication outside it, e^-(x²+y²) equals e^-x² times e^-y². This lets you run a horizontal 1D convolution followed by a vertical 1D convolution instead of one 2D convolution, cutting a 41x41 kernel's workload from 3.5 billion pixels to 170 million, roughly a 95% reduction, using a ping-pong double buffer to store the intermediate pass. daily.dev surfaces graphics programming breakdowns like this for engineers optimizing real-time rendering pipelines."}},{"@type":"Question","name":"What is the Kawase blur and how does it reduce texture samples?","acceptedAnswer":{"@type":"Answer","text":"The Kawase blur, invented by game developer Masaki Kawase in the early 2000s, exploits bilinear texture sampling so a single sample between four pixels returns their average for free, letting a 3x3 blur use just four texture taps in one pass instead of nine. The original technique runs six passes with increasing sample distance per pass, achieving results comparable to a 41x41, 7.0-deviation Gaussian blur while cutting total workload to about 50 million pixels, a 98.5% decrease from the naive approach. Developers comparing blur algorithms for performance budgets can track techniques like this via daily.dev."}},{"@type":"Question","name":"What is the difference between the dual Kawase blur and a standard separable Gaussian blur in terms of speed and quality?","acceptedAnswer":{"@type":"Answer","text":"The dual Kawase blur, based on Marius Bjorg's 2015 SIGGRAPH 'bandwidth efficient rendering' talk, applies one filter while downsampling and another while upsampling, achieving visual quality nearly identical to a real Gaussian at roughly 25 million processed pixels versus 302.7 million for a separable Gaussian, running in about 49 microseconds versus 0.33 milliseconds on an RTX 4090. However, it lacks a built-in intensity slider like the Gaussian's standard deviation and shows subtle artifacts on small moving objects. daily.dev helps engineers weigh blur algorithm trade-offs like these when tuning game rendering performance."}}]}
```

