News for hackers. Stuff that matters.
Re:MicroUI – A tiny, portable, immediate-mode UI library wri... by flohofwoe on Thursday June 18, 2026 @08:29AM (#48584331)
> - constant repainting (while literally nothing changes) -> constant CPU load

This doesn't explain a 100% CPU usage since requestAnimationFrame is vsync-throttled and rendering such a simple scene will do the per-frame work in a fraction of a frame duration.

And FWIW I cannot reproduce the issue in both demos (in Chrome on macOS). The sokol demo has a per-frame load of about 0.3ms per 8.333ms frame, and the demo hosted on vercel.app about 0.7ms, both pretty much within expecations.

There are no comments on this comment yet.