Hacker News new | ask | show | jobs
by momonga 1839 days ago
I wonder how much CPU this uses. An immediate mode GUI (ImGUI, which CodePerfect 95 uses) constructs the entire GUI on every frame by default.
1 comments

It does run through every node in the would-be scene graph by default, but IIRC the Dear ImGUI library caches the actual expensive toolkit, graphics, and/or window system calls for each subtree. The API is immediate-mode, but its implementation does not have to be stateless. (Cf. React.)