Blender's UI and runtime: much faster than GPUI
BUI turns Blender's user interface — its widget drawing, interaction rules and look — into a standalone UI library with a small C core, callable from Python, Rust, JavaScript/React, C, C++ and Dear ImGui[1]. People spent decades building and optimizing Blender's GUI, which redraws only what changed, sleeps when nothing does and starts in milliseconds, and BUI's aim is to let any app in any language have both that feel and that efficiency. At its heart is the kit, a small runtime written in C that holds every widget in one tree, lays them out, handles mouse and keyboard and draws them the way Blender does; bindings for the other languages sit on top of it. The project notes it is not Blender (nothing needs to be installed and no Blender knowledge is required), not a browser (HTML and CSS serve as a UI language, but there is no browser engine, no webview and no network) and not a re-imagining (the drawing code is ported from Blender's interface_widgets.cc, and the Dear ImGui support runs the real Dear ImGui).
BUI reproduces Blender's interactions: number fields dragged with a hidden continuous cursor, expressions like 2*pi and min(4, 3) evaluated in fields, fuzzy menu search where "ad cu" finds "Add Cube", undo and redo on every edit, the HSV color wheel, a node editor, Blender's file browser, and switchable Dark and Light themes. All of this shares the same C runtime and can be driven in several ways: through tkinter[2] (all 7,846 public names of tkinter and ttk), Qt-style syntax, 45 Blender widgets, editors and templates, all 113 HTML elements with modern CSS and Tailwind CSS v4, React 19.3, and Rust syntax compatible with gpui[3].
Damage rendering[4] keeps an idle UI at 0% CPU, and a hover redraws only the widget it touches. An opt-in GPU renderer uses Direct3D 11 on Windows and OpenGL 3.3 on Linux. In the project's benchmark BUI uses 2–4× less CPU per frame than gpui-fast, with less RAM and a ~5 ms first frame. Image handling is memory-budgeted: scrolling 1,000 photo thumbnails takes 2.9 ms p99 frames and 100 MB, against 96 ms and 2.5 GB when decoding on the UI thread, and 200 GIF/WebP animations at once cost 0.76 ms p50 / 1.5 ms p99.
Read the original github.comDiscussion
Sources
-
GitHub
Blender's UI and Runtime: Much Faster Than GPUI






