Blender's UI and Runtime: Much Faster Than GPUI github.com · 295 points · 124 co...

@best30

Blender's UI and Runtime: Much Faster Than GPUI github.com · 295 points · 124 comments · HN thread

TL;DR BUI (Blender UI) is a project that extracts Blender's widget drawing, interaction rules and look into a standalone C UI kit with bindings for Python (tkinter, Qt-style and component APIs), Rust, JavaScript (React, Svelte), C++ and Dear ImGui. It renders on the CPU by default or on the GPU (Direct3D 11 / OpenGL 3.3), and the author claims lower CPU use and faster first frames than gpui and gpui-fast in its own benchmarks. The project is GPL-2.0-or-later because it derives from Blender's source, and the README says the repository was written entirely with LLMs.

  • BUI is a C runtime ported from Blender's interface_widgets.cc and interaction code, exposed through bindings for Python, Rust, JavaScript, C, C++ and Dear ImGui.
  • Python wheels, a crates.io crate (blenderui), and npm packages (prebuilt for Windows x64 only) are published; Windows and Linux are native, macOS is experimental and JavaScript is headless there.
  • Self-reported benchmarks on a Ryzen 7 5800U show roughly 5x faster first frame and about 2-4x less CPU per frame than gpui-fast on an animated 3000-cell scene.
  • Includes a tkinter compatibility layer claimed to cover all 7,846 public tkinter and ttk names, a partial Qt-style API (about 24% of method names), and 45 Blender-style components.
  • Damage-driven rendering means an idle window uses no CPU and a hover redraws only the touched widget.
  • Known gaps listed in the README: no accessibility, no IME, limited CSS (261 of 745 W3C properties render), and no per-glyph font fallback.

Discussion The thread is mostly a mix of enthusiasm for reusing Blender's UI outside Blender and skepticism about the licence, the LLM-written code, and whether Blender's interface is actually good. Many commenters argue about Blender's UX versus other 3D and graphics tools, with some saying it is the best power-user paradigm and others calling it awful. A large side discussion concerns GPL restrictions for libraries, with the author saying LGPL is not possible because of the Blender derivation. Performance claims about GPUI drew pushback over how comparisons were made. The overall mood is curious and mixed, with more sarcasm and jokes than hostility.

  • Blender's UI is elegant and worth reusing elsewhere (some): Several long-time Blender users praise its customizability, split-screen and tab workflows, and the polish it gained over the years, and want to see it in game engines, DAWs, audio software or GIMP/Inkscape.
  • Blender's UI is awful or hard to use (some): Some commenters, including people who used many other 3D packages, find Blender's UI harder than it should be and say it suffers from familiarity bias among long-time users.
  • Don't spread Blender's UI into other applications (a few): A few commenters explicitly say they do not want this UI style in anything other than Blender, and that its complexity suits only specialised 3D work.
  • GPL licence limits adoption (many): Many commenters see GPL as a barrier compared with Apache or MIT toolkits like GPUI or Dear ImGui; the author confirms LGPL is not an option because of the Blender derivation, and some argue GPL is a healthy choice.
  • Vibe-coded or LLM-written project concerns (some): Some commenters question the value and longevity of a project written entirely by LLMs, and others say the code quality looks well done for that approach.
  • Missing accessibility is a serious gap (a few): One commenter noted the absence of any mention of accessibility and urged caution for general-purpose apps; the author said it would be added later.
  • Performance claims versus GPUI need proof (a few): Some dispute the comparison, claiming other Rust toolkits like Iced or Slint are faster; others push back that such claims need data.

Links from the comments

#blender #gui #rust #python #gpl #uiToolkit