Every game on Gerk Games uses HTML5 Canvas. Not WebGL (too complex), not SVG (too slow for animation), not DOM elements (too unpredictable). Here's the decision process for each game and why Canvas wins every time.

Canvas vs DOM: The Frame Budget

The critical difference is how the browser handles rendering. DOM elements trigger layout and paint cycles for every style change. Even with CSS transforms (which are GPU-accelerated), modifying more than 20-30 DOM elements per frame causes jank on mobile. Canvas gives you a pixel buffer where you control every draw call.

For Snake Arena with 50+ grid cells moving simultaneously, DOM would struggle at 30fps on mid-range devices. Canvas handles it at 60fps because there's no layout calculation — just pixel drawing. The tradeoff is more code, but the frame budget is worth it.