Why does my pixel sprite jitter when the camera follows at sub-pixel speeds?

Yoshiii
Sun, 26 Apr 2026 04:14:22 +0000

One more place “jitter” can come from is the browser compositing your canvas, not your camera math. If the canvas has transparency and it’s layered over anything with texture (a gradient, an image, even a scrolling page), the edge blending can wobble a hair frame-to-frame and your brain reads it as shimmer.

I hit this with a transparent HUD canvas on top of a WebGL scene — making the HUD canvas fully opaque (or drawing it onto a solid-color backing first) made the “jitter” basically disappear.