Gridwright Store

28 Nov 2026 · By Gridwright Studio

Pixel Art Camera Jitter in Godot 4: What Causes It and the Fix

Gridwright pack artwork for Pixel Art Camera Jitter in Godot 4: What Causes It and the Fix

Your character walks right, the camera follows, and the character shakes. It moves a pixel ahead, slips back, moves ahead again. Sometimes the ground flickers too, as if a line of pixels appears and vanishes. It can look fine on your monitor and shake on a friend's 144 Hz screen. All of this comes from a handful of settings, and each one can be measured.

We built the usual setup in Godot 4.7.2 and read back every frame it drew: a player moving right at 50 pixels a second, a Camera2D as its child, a ground of 16x16 tiles in a TileMapLayer like the Top-Down Tileset, and a Parallax2D layer at half speed. We ran 20 combinations of settings at 60 and at 144 frames a second, the second standing in for a 144 Hz monitor. Then we counted what the eye reads as jitter: frames where the player turns back on the screen, steps backwards against the ground, or a tile loses a pixel column.

The test project

  • Display, Window, Size: 320x180, a common pixel art size (20 by 11.25 tiles of 16 px).
  • Display, Window, Stretch: Mode viewport and Scale Mode integer, which the Godot docs recommend for pixel art. The game draws at 320x180 and is scaled up by whole numbers.
  • Rendering, Textures, Canvas Textures, Default Texture Filter: Nearest.
  • Physics, Common, Physics Ticks per Second: 60, the default.

The player script is the plain one most projects start with:

  • extends Node2D
  • var speed := 50.0
  • func _physics_process(delta: float) -> void: position.x += speed * delta

At 60 ticks a second that is 0.83 px per tick, so the player almost always sits between two pixels. Something has to decide which pixel it is drawn on, and the player and the camera don't always decide the same way. That is where every problem below starts.

Cause 1: camera smoothing on a fast monitor

Position Smoothing on the Camera2D is off by default, with a speed of 5. Turn it on and run at 60 fps, and the player sat on the same screen column in every frame. Run the same project at 144 fps and the player flipped between two columns. It changed direction 239 times in 361 frames, about two and a half seconds, and on 80 of those frames it moved backwards against the ground.

The cause is timing. The camera's Process Callback defaults to Idle, so the camera moves on every drawn frame. The player moves only on physics ticks, 60 times a second. At 144 fps there are two or three frames per tick, so the camera keeps catching up on the frames without a tick, and then the player jumps ahead on the next one. Godot's own page on jitter names this as the most common cause: physics running at a different rate from the monitor.

There are two fixes, and the second one is better:

  • Set the camera's Process Callback to Physics. The shaking stopped, but now the whole picture moves only 60 times a second on a 144 Hz screen. The drawn player strayed across a 1.6 px range from perfectly steady motion, and tiles lost a pixel column on 57 of 361 frames (cause 3).
  • Turn on Physics Interpolation (Project Settings, Physics, Common; switch on Advanced Settings to see it). Godot 4.3 added it for 2D. The renderer draws every node between its last two physics positions, so the player moves on every frame too. We saw 0 turns, 0 backward steps and no lost columns, and the drawn position stayed within a 1 px range, which is only the rounding to whole pixels. The camera can stay on Idle; Physics gave the same result.

Interpolation asks one thing of your code: move objects in _physics_process, as the script above does. When you teleport something, set its new position and then call reset_physics_interpolation() on it, or it streaks from the old spot to the new one.

Sixteen 16x16 top-down pixel art characters from Top-Down Characters, from Villager to Pirate, each shown large and walking
Top-Down Characters: 16 characters with 24 frames each, on the same 16x16 grid as the Top-Down Tileset.

Cause 2: Snap 2D Transforms to Pixel with a smoothed camera

Rendering, 2D, Snap, Snap 2D Transforms to Pixel rounds the position of every CanvasItem when it is drawn. Its own description in the docs warns that it costs smooth movement, especially with Camera2D smoothing. We measured how much.

With smoothing on, this snap made the player shake 1 px against the screen at both frame rates: 49 turns in 152 frames at 60 fps, and 249 in 361 at 144 fps, even with Physics Interpolation on. The player and the camera took turns. The player stepped a pixel ahead, and a frame later the camera caught up. It never moved backwards on the ground, but your eye follows the player, so it reads as shaking.

With the camera locked to the player (smoothing off), the same snap was perfect at 60 and at 144 fps. The player stayed on one screen column and every tile kept all 16 of its columns.

Cause 3: tiles that lose a pixel column

Leave both snaps off and a different fault shows on the ground. Whenever the camera stood exactly on a half pixel, the GPU drew the first column of every 16 px tile twice and dropped the tile's last column. With the camera locked to the player at 50 px/s, that happened on 25 of 152 frames at 60 fps. On grass, bricks or water it reads as a line that flickers across the whole map.

Snap 2D Transforms to Pixel removed it completely. A smoothed camera can't use that snap without the shake from cause 2, so it takes Snap 2D Vertices to Pixel instead, in the same Snap section (an Advanced setting). That cut the frames with a lost column from 24 to 1 at 60 fps, and to 0 once Physics Interpolation was on, with no shake. The docs say not to turn on both snaps together, so pick one.

Grass, water, cliff and sand autotile sets, corner sets, fences, ground textures and props from the Top-Down Tileset
Top-Down Tileset: 47-tile autotile sets, corner sets, ground textures and 32 props on a strict 16x16 grid.

Two setups that held still

  • Camera locked to the player: Position Smoothing off, Snap 2D Transforms to Pixel on, Physics Interpolation on. 0 shaking frames and 0 lost columns at 60 and at 144 fps.
  • Smoothed camera: Position Smoothing on, Snap 2D Transforms to Pixel off, Snap 2D Vertices to Pixel on, Physics Interpolation on, Process Callback left on Idle. 0 shaking frames and 0 lost columns at 60 and at 144 fps.

Both need the base from the test project: viewport stretch, integer scale, the Nearest filter, and movement in _physics_process. The two snaps and Physics Interpolation are read only when the project starts, so restart the game after changing them.

Sub-pixel speeds and parallax layers

A clean setup still can't make an uneven speed even. At 50 px/s the ground moved 1 px on 126 frames and stood still on 25, about five steps for every pause. At 60 px/s, exactly 1 px per tick, it moved 1 px on every frame at 60 fps, and even the shaky setup from cause 2 gave 0 shaking frames. For walks and slow camera pans, speeds that are whole pixels per tick (60 or 120 px/s at 60 ticks) give the most even steps.

Parallax2D layers follow the camera, not the player. Our half-speed layer never moved backwards in any of the 20 setups, so if the background scrolls smoothly while the player shakes, look at the camera and player settings above. Parallax2D's own Physics Interpolation Mode is Off by default, and it still never stepped back in the interpolation runs.

The Parallax Backgrounds pack is drawn for a 320x180 view and includes a Godot 4.3+ Parallax2D scene for each of its 48 backgrounds, with scroll factors and repeat size already set. How to make parallax backgrounds for a 2D game explains how those factors are chosen.

Parallax Backgrounds: a pixel art platformer level with a character on grass ledges in front of mountains, hills, clouds and a sun
Parallax Backgrounds: a meadow scene behind a platformer level, drawn for a 320x180 view.

Checklist

  • Base: stretch mode viewport, scale mode integer, Nearest filter.
  • Move the player in _physics_process.
  • Turn on Physics Interpolation, and call reset_physics_interpolation() after a teleport.
  • Camera locked to the player: Snap 2D Transforms to Pixel on.
  • Smoothed camera: Snap 2D Transforms off, Snap 2D Vertices on.
  • Never both snaps at once.
  • Test at 144 fps once: start the game with --fixed-fps 144 to get the same tick and frame mismatch a 144 Hz monitor gives.

The Top-Down Characters pack has 16 characters with a 2-frame idle and a 4-frame walk in 4 directions, feet on the bottom rows of a strict 16x16 grid, the same grid as the Top-Down Tileset's 1,113 tiles. For import settings that keep them sharp, see how to import pixel art sprite sheets into Godot 4.

Our packs can go in commercial games but not be resold as files; see can I use game assets in a commercial game. If you need a tileset or characters drawn for your game, you can order a custom pack.

Found it useful? Share it

Get the art for your game

Our packs together in the $20 Megabundle, a custom pack drawn for your game, or the packs in this post from $9.99 each.

Best value

Gridwright Megabundle

Our packs and tools on itch.io in one bundle, for less than three of them one by one.

Get it for $20 (opens in a new tab)

Custom packs from $49

Not finding it? We draw it for your game, in 14 days or your money back.

Order a custom pack

Packs mentioned

Related guides