makepad-2.0-performance

Installation
SKILL.md

Makepad 2.0 Performance & Debugging Skill

1. Overview

Makepad 2.0 uses a unique rendering pipeline combined with the Splash script VM. Performance depends on understanding three critical subsystems:

  1. Draw Batching - How Makepad groups GPU draw calls and why new_batch: true matters
  2. Garbage Collection - The Splash VM's mark-sweep GC with per-type-bucket thresholds
  3. Render Triggers - The on_render / .render() system that controls when sub-trees rebuild

Unlike traditional retained-mode UI frameworks, Makepad uses an immediate-mode-inspired draw pipeline where widgets emit draw commands into a sorted batch list. Understanding this pipeline is essential for diagnosing invisible text, flickering, and performance regressions.


2. Draw Batching System

How It Works

Makepad automatically batches consecutive draw calls that use the same shader into a single GPU draw call. This is a major performance optimization, but it has a critical side effect: draw order can be surprising.

Related skills
Installs
18
GitHub Stars
737
First Seen
Apr 5, 2026