Nine bits on an eight-bit screen
Temporal dithering can buy a cheap panel an extra bit or two of apparent colour depth. It can also look terrible. The difference is in the timing, not the maths.

An eight-bit-per-channel panel has 256 levels between black and white. That sounds like plenty until you put a slow gradient across a large, evenly lit area. Then the eye, which is very good at finding edges, picks out every step as a contour. The usual name for this is banding, and the usual fix is to add noise so that the contour stops being a line and becomes a texture.
Temporal dithering does the same trick in time instead of space. Show level n for one frame and level n+1 for the next, and at a high enough refresh rate the two integrate into a level between them. Two frames give you one extra bit. Four give you two.
The arithmetic#
If a panel refreshes at 120 Hz and you alternate between two adjacent 8-bit values on successive frames, each value is on screen for 8.3 ms. The average is what the eye perceives, as long as the alternation is fast enough that it does not read as flicker.
# two-frame temporal dither, per pixel
phase = frame_counter & 1
target = value + noise[x, y] # spatial dither decides the threshold
out = (target > threshold[phase]) ? ceil(value) : floor(value)
The noise term matters more than it looks. Without it, every pixel flips in lockstep and the whole image pulses. With a fixed blue-noise mask, neighbouring pixels flip at different phases and the pulse becomes texture.
Where it breaks#
Three failure modes are worth knowing before you build anything on top of this:
- Refresh rate. Below roughly 90 Hz, the alternation becomes visible as flicker in peripheral vision, especially on large flat areas. Peripheral vision is sensitive to exactly the frequencies that centre vision ignores.
- Panel response. A slow LCD does not reach the target value within a frame. The intended 50/50 average becomes something else entirely, which shifts colour rather than smoothing it. You need to measure the actual light output, not the intended signal.
- Compositor control. If anything between your renderer and the panel retimes frames — a window compositor, a capture path, a virtual display — the phase relationship is lost and the dither degrades into temporal noise.
That last one is the reason this technique is common in dedicated full-screen viewers and rare in windowed applications. Owning the swap chain is a prerequisite, not a detail.
Measuring instead of guessing#
The only honest way to evaluate a dithering scheme is to look at what the panel actually emits. A photodiode against the screen plus an oscilloscope will show the frame-by-frame light curve directly. Failing that, a high-frame-rate camera pointed at a flat patch is enough to see whether the alternation is smooth or stuttering.
For the perceptual side, the gradient test chart in the downloads is deliberately unhelpful: it includes ramps at several angles, radial gradients, and a few patches where the step size doubles. If a scheme survives all of them at normal viewing distance, it is probably worth keeping.
The gallery below is the same set of gradients, rendered conventionally. They are useful as a baseline: if the banding is obvious here, it will be obvious after dithering too, just in a different costume.



