GoDrawGoDraw

Rendering

Stable

Redraw only what changed, and make it look hand-drawn.

How GoDraw's layered renderer keeps big boards fast and gives shapes their sketchy look.

The idea

A board can hold hundreds of shapes, but at any moment only a few are actually changing. GoDraw is built around that fact: rather than repaint the whole scene on every frame, it separates the canvas into layers and repaints only the parts that went stale.

Background, main, and overlay layers stacked
Three layers, each repainted only when it changes

How it works

There are three layers, stacked back to front:

  • A static background layer: patterns, page edges, the grid. It rarely changes.
  • The main content layer: your shapes, text, and arrows.
  • A transient overlay layer: selection boxes, alignment guides, and remote collaborators' cursors. This is the busiest layer but the cheapest to redraw.

When you drag a selection handle, only the overlay needs repainting; the background sits untouched. GoDraw tracks which regions are "dirty" and refreshes just those, so a heavy board still feels light.

The hand-drawn look

The sketchy aesthetic isn't a font or a filter; it's generated. As each shape is drawn, its outline is perturbed slightly: lines wobble a touch, corners overshoot, strokes vary in weight. That controlled imperfection (rough rendering) is what makes a precise rectangle read like something sketched by hand.

Why it works this way

Painting directly to Canvas 2D and redrawing only dirty layers is what lets GoDraw stay smooth where a DOM-based approach would bog down. The layering also gives collaboration a clean home: live cursors and guides live on the overlay, never disturbing the content beneath.

Was this helpful?